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 .NET Micro Framework version 2.0, 2.5
See Also
Reference
Buttons Class
Button Enumeration
Buttons Members
Microsoft.SPOT.Input Namespace