Class ButtonDevice
- Namespace
- GHIElectronics.Endpoint.UI.Input
- Assembly
- GHIElectronics.Endpoint.UI.dll
The ButtonDevice class represents the button device to the members of a context.
public sealed class ButtonDevice : InputDevice
- Inheritance
-
ButtonDevice
- Inherited Members
Properties
DeviceType
public override InputManager.InputDeviceType DeviceType { get; }
Property Value
Target
Returns the element that input from this device is sent to.
public override UIElement Target { get; }
Property Value
Methods
Focus(UIElement)
Focuses the button input on a particular element.
public UIElement Focus(UIElement obj)
Parameters
objUIElement
Returns
- UIElement
Element focused to
GetButtonState(HardwareButton)
Returns the state of the specified button.
public ButtonState GetButtonState(HardwareButton button)
Parameters
buttonHardwareButton
Returns
IsButtonDown(HardwareButton)
Returns whether or not the specified button is down.
public bool IsButtonDown(HardwareButton button)
Parameters
buttonHardwareButton
Returns
IsButtonHeld(HardwareButton)
Returns whether or not the specified button is held.
public bool IsButtonHeld(HardwareButton button)
Parameters
buttonHardwareButton
Returns
IsButtonUp(HardwareButton)
Returns whether or not the specified button is up.
public bool IsButtonUp(HardwareButton button)
Parameters
buttonHardwareButton