Share via


Buttons Class

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

Represents the buttons on an input device.

Inheritance Hierarchy

System. . :: . .Object
  Microsoft.SPOT.Input..::..Buttons

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

Syntax

'Declaration
Public NotInheritable Class Buttons
public sealed class Buttons
public ref class Buttons sealed
[<Sealed>]
type Buttons =  class end
public final class Buttons

The Buttons type exposes the following members.

Constructors

  Name Description
Public method Buttons Initializes a new instance of the Buttons class.

Top

Properties

  Name Description
Public propertyStatic member FocusedElement Gets the display element that currently has the button focus.
Public propertyStatic member PrimaryDevice Gets the primary button input device with which the current Buttons object is associated.

Top

Methods

  Name Description
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public methodStatic member Focus Moves the button focus to a specified display element.
Public methodStatic member 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 methodStatic member IsButtonDown Determines whether a specified button is currently pressed down.
Public methodStatic member IsButtonHeld Determines whether the specified button is currently being held down.
Public methodStatic member 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.)

Top

Fields

  Name Description
Public fieldStatic member ButtonDownEvent Specifies the bubbling-routed event that occurs when a button on a button device is pressed.
Public fieldStatic member ButtonUpEvent Specifies the bubbling-routed event that occurs when a button on a button device is released.
Public fieldStatic member GotFocusEvent Specifies the bubbling-routed event that occurs when a display element on a button device receives the button focus.
Public fieldStatic member LostFocusEvent Specifies the bubbling-routed event that occurs when a display element on a button device loses the button focus.
Public fieldStatic member PreviewButtonDownEvent Specifies the tunneling-routed event that occurs when a button on a button device is pressed.
Public fieldStatic member PreviewButtonUpEvent Specifies the tunneling-routed event that occurs when a button on a button device is released.

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