public KeyboardUWP(InputSourceUWP source, CoreWindow uiControl) { Source = source; this.uiControl = uiControl; uiControl.KeyDown += CoreWindowOnKeyDown; uiControl.KeyUp += CoreWindowOnKeyUp; }
public GamePadUWP(InputSourceUWP source, Gamepad gamepad, Guid id) { Source = source; Id = id; ProductId = new Guid("800BE63B-49DC-4214-A4D2-E39E24EA3542"); Gamepad = gamepad; }
public PointerUWP(InputSourceUWP source, CoreWindow uiControl) { this.UIControl = uiControl; Source = source; uiControl.SizeChanged += UIControlOnSizeChanged; uiControl.PointerMoved += UIControlOnPointerMoved; uiControl.PointerPressed += UIControlOnPointerPressed; uiControl.PointerReleased += UIControlOnPointerReleased; uiControl.PointerExited += UIControlOnPointerExited; uiControl.PointerCaptureLost += UIControlOnPointerCaptureLost; // Set initial surface size SetSurfaceSize(new Vector2((float)uiControl.Bounds.Width, (float)uiControl.Bounds.Height)); }
public MouseUWP(InputSourceUWP source, CoreWindow uiControl) : base(source, uiControl) { mouseState = new MouseDeviceStateUWP(PointerState, this); uiControl.PointerWheelChanged += UIControlOnPointerWheelChanged; }