Search Results for

    Show / Hide Table of Contents

    Class ButtonDevice

    The ButtonDevice class represents the button device to the members of a context.

    Inheritance
    object
    DispatcherObject
    InputDevice
    ButtonDevice
    Inherited Members
    DispatcherObject.Dispatcher
    DispatcherObject.CheckAccess()
    DispatcherObject.VerifyAccess()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: nanoFramework.UI.Input
    Assembly: nanoFramework.Graphics.dll
    Syntax
    public sealed class ButtonDevice : InputDevice

    Properties

    DeviceType

    Device Type

    Declaration
    public override InputManager.InputDeviceType DeviceType { get; }
    Property Value
    Type Description
    InputManager.InputDeviceType
    Overrides
    InputDevice.DeviceType

    Target

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

    Declaration
    public override UIElement Target { get; }
    Property Value
    Type Description
    UIElement
    Overrides
    InputDevice.Target

    Methods

    Focus(UIElement)

    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

    GetButtonState(Button)

    Returns the state of the specified button.

    Declaration
    public ButtonState GetButtonState(Button button)
    Parameters
    Type Name Description
    Button button
    Returns
    Type Description
    ButtonState

    IsButtonDown(Button)

    Returns whether or not the specified button is down.

    Declaration
    public bool IsButtonDown(Button button)
    Parameters
    Type Name Description
    Button button
    Returns
    Type Description
    bool

    IsButtonHeld(Button)

    Returns whether or not the specified button is held.

    Declaration
    public bool IsButtonHeld(Button button)
    Parameters
    Type Name Description
    Button button
    Returns
    Type Description
    bool

    IsButtonUp(Button)

    Returns whether or not the specified button is up.

    Declaration
    public bool IsButtonUp(Button button)
    Parameters
    Type Name Description
    Button button
    Returns
    Type Description
    bool

    Extension Methods

    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    In This Article
    Back to top Copyright © 2023 nanoFramework Contributors
    Generated by DocFX