Ejemplo n.º 1
0
 public static KeyStates GetKeyStates(Key key)
 {
     return(PrimaryDevice.GetKeyStates(key));
 }
Ejemplo n.º 2
0
 public static bool IsKeyToggled(Key key)
 {
     return(PrimaryDevice.IsKeyToggled(key));
 }
Ejemplo n.º 3
0
 public static void UpdateCursor()
 {
     PrimaryDevice.UpdateCursor();
 }
Ejemplo n.º 4
0
 public static IInputElement Focus(IInputElement element)
 {
     return(PrimaryDevice.Focus(element));
 }
Ejemplo n.º 5
0
 /// <summary>
 ///     Returns whether or not the specified button is held.
 /// </summary>
 public static bool IsButtonHeld(Button button)
 {
     return(PrimaryDevice.IsButtonHeld(button));
 }
Ejemplo n.º 6
0
 public static void Synchronize()
 {
     PrimaryDevice.Synchronize();
 }
Ejemplo n.º 7
0
 public static bool Capture(IInputElement element, CaptureMode captureMode)
 {
     return(PrimaryDevice.Capture(element, captureMode));
 }
Ejemplo n.º 8
0
 public static ButtonState GetButtonState(HardwareButton button)
 {
     return(PrimaryDevice.GetButtonState(button));
 }
Ejemplo n.º 9
0
 /// <summary>
 ///     Returns the state of the specified button.
 /// </summary>
 public static ButtonState GetButtonState(HardwareButton button) => PrimaryDevice.GetButtonState(button);
Ejemplo n.º 10
0
 public static bool Capture(IInputElement element)
 {
     return(PrimaryDevice.Capture(element));
 }
Ejemplo n.º 11
0
 /// <summary>
 ///     Returns whether or not the specified button is held.
 /// </summary>
 public static bool IsButtonHeld(HardwareButton button) => PrimaryDevice.IsButtonHeld(button);
Ejemplo n.º 12
0
 /// <summary>
 ///     Returns whether or not the specified button is down.
 /// </summary>
 public static bool IsButtonDown(HardwareButton button) => PrimaryDevice.IsButtonDown(button);
Ejemplo n.º 13
0
 /// <summary>
 ///     Focuses the button on a particular element.
 /// </summary>
 /// <param name="element">
 ///     The element to focus the button on.
 /// </param>
 public static UIElement Focus(UIElement element) => PrimaryDevice.Focus(element);
Ejemplo n.º 14
0
 public static bool IsKeyUp(Key key)
 {
     return(PrimaryDevice.IsKeyUp(key));
 }
Ejemplo n.º 15
0
 public static Point GetPosition(IInputElement relativeTo)
 {
     return(PrimaryDevice.GetPosition(relativeTo));
 }
Ejemplo n.º 16
0
 public static UIElement Focus(UIElement element)
 {
     return(PrimaryDevice.Focus(element));
 }
Ejemplo n.º 17
0
 public static bool SetCursor(Cursor cursor)
 {
     return(PrimaryDevice.SetCursor(cursor));
 }
Ejemplo n.º 18
0
 public static bool IsButtonUp(HardwareButton button)
 {
     return(PrimaryDevice.IsButtonUp(button));
 }
Ejemplo n.º 19
0
 /// <summary>
 ///     Returns whether or not the specified button is down.
 /// </summary>
 public static bool IsButtonDown(Button button)
 {
     return(PrimaryDevice.IsButtonDown(button));
 }