Share via


GetButtonState Method

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

Gets the state of a specified button.

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

Syntax

'Declaration
Public Shared Function GetButtonState ( _
    button As Button _
) As ButtonState
public static ButtonState GetButtonState(
    Button button
)
public:
static ButtonState GetButtonState(
    Button button
)
static member GetButtonState : 
        button:Button -> ButtonState 
public static function GetButtonState(
    button : Button
) : ButtonState

Parameters

Return Value

Type: Microsoft.SPOT.Input. . :: . .ButtonState
A value that indicates the state of the specified button.

.NET Framework Security

See Also

Reference

Buttons Class

Microsoft.SPOT.Input Namespace