Share via


Buttons.GetButtonState Method

Gets the state of a specified button.

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

Syntax

public static ButtonState GetButtonState (
         Buttonbutton
)

Parameters

  • button
    A value of the Button enumeration that identifies the button whose current state you want to get.

Return Value

A value of the ButtonState enumeration that indicates the state of the specified button.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.

See Also

Reference

Buttons Class
Button Enumeration
Buttons Members
Microsoft.SPOT.Input Namespace