Share via


ButtonDevice Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Represents a hardware device that has buttons on it to input data.

Inheritance Hierarchy

System. . :: . .Object
  Microsoft.SPOT. . :: . .DispatcherObject
    Microsoft.SPOT.Input. . :: . .InputDevice
      Microsoft.SPOT.Input..::..ButtonDevice

Namespace:  Microsoft.SPOT.Input
Assembly:  Microsoft.SPOT.TinyCore (in Microsoft.SPOT.TinyCore.dll)

Syntax

'Declaration
Public NotInheritable Class ButtonDevice _
    Inherits InputDevice
public sealed class ButtonDevice : InputDevice
public ref class ButtonDevice sealed : public InputDevice
[<Sealed>]
type ButtonDevice =  
    class
        inherit InputDevice
    end
public final class ButtonDevice extends InputDevice

The ButtonDevice type exposes the following members.

Properties

  Name Description
Public property DeviceType Gets the device type. (Overrides InputDevice. . :: . .DeviceType.)
Public property Target Gets the display element that receives input from a particular button device. (Overrides InputDevice. . :: . .Target.)

Top

Methods

  Name Description
Public method CheckAccess Determines whether the calling thread has access to the current DispatcherObject object. (Inherited from DispatcherObject.)
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public method Focus Moves the focus for a button device to the specified display element.
Public method GetButtonState Gets the state of a specified button.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IsButtonDown Determines whether a specified button has been pressed.
Public method IsButtonHeld Determines whether the specified button has been pressed and whether it remained in the down position for a period of time when it was pressed.
Public method IsButtonUp Determines whether a specified button is currently in the up position (that is, not pressed down).
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method VerifyAccess Determines whether the calling thread has access to the current DispatcherObject object. (Inherited from DispatcherObject.)

Top

Fields

  Name Description
Public field Dispatcher Contains the Dispatcher object that the current DispatcherObject object is associated with. (Inherited from DispatcherObject.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.SPOT.Input Namespace