Class ButtonDevice
The ButtonDevice class represents the button device to the
members of a context.
Namespace: nanoFramework.UI.Input
Assembly: nanoFramework.Graphics.dll
public sealed class ButtonDevice : InputDevice
Properties
Declaration
public override InputManager.InputDeviceType DeviceType { get; }
Property Value
Overrides
Returns the element that input from this device is sent to.
Declaration
public override UIElement Target { get; }
Property Value
Overrides
Methods
Focuses the button input on a particular element.
Declaration
public UIElement Focus(UIElement obj)
Parameters
Type |
Name |
Description |
UIElement |
obj |
The element to focus the button pad on.
|
Returns
Type |
Description |
UIElement |
Element focused to
|
Returns the state of the specified button.
Declaration
public ButtonState GetButtonState(Button button)
Parameters
Type |
Name |
Description |
Button |
button |
|
Returns
Returns whether or not the specified button is down.
Declaration
public bool IsButtonDown(Button button)
Parameters
Type |
Name |
Description |
Button |
button |
|
Returns
Returns whether or not the specified button is held.
Declaration
public bool IsButtonHeld(Button button)
Parameters
Type |
Name |
Description |
Button |
button |
|
Returns
Returns whether or not the specified button is up.
Declaration
public bool IsButtonUp(Button button)
Parameters
Type |
Name |
Description |
Button |
button |
|
Returns
Extension Methods