예제 #1
0
 public KeyboardUWP(InputSourceUWP source, CoreWindow uiControl)
 {
     Source             = source;
     this.uiControl     = uiControl;
     uiControl.KeyDown += CoreWindowOnKeyDown;
     uiControl.KeyUp   += CoreWindowOnKeyUp;
 }
예제 #2
0
 public GamePadUWP(InputSourceUWP source, Gamepad gamepad, Guid id)
 {
     Source    = source;
     Id        = id;
     ProductId = new Guid("800BE63B-49DC-4214-A4D2-E39E24EA3542");
     Gamepad   = gamepad;
 }
예제 #3
0
        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));
        }
예제 #4
0
 public MouseUWP(InputSourceUWP source, CoreWindow uiControl)
     : base(source, uiControl)
 {
     mouseState = new MouseDeviceStateUWP(PointerState, this);
     uiControl.PointerWheelChanged += UIControlOnPointerWheelChanged;
 }