Table of Contents

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

InputManager.InputDeviceType

Target

Returns the element that input from this device is sent to.

public override UIElement Target { get; }

Property Value

UIElement

Methods

Focus(UIElement)

Focuses the button input on a particular element.

public UIElement Focus(UIElement obj)

Parameters

obj UIElement

Returns

UIElement

Element focused to

GetButtonState(HardwareButton)

Returns the state of the specified button.

public ButtonState GetButtonState(HardwareButton button)

Parameters

button HardwareButton

Returns

ButtonState

IsButtonDown(HardwareButton)

Returns whether or not the specified button is down.

public bool IsButtonDown(HardwareButton button)

Parameters

button HardwareButton

Returns

bool

IsButtonHeld(HardwareButton)

Returns whether or not the specified button is held.

public bool IsButtonHeld(HardwareButton button)

Parameters

button HardwareButton

Returns

bool

IsButtonUp(HardwareButton)

Returns whether or not the specified button is up.

public bool IsButtonUp(HardwareButton button)

Parameters

button HardwareButton

Returns

bool