IsButtonDown Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Determines whether a specified button has been pressed.
Namespace: Microsoft.SPOT.Input
Assembly: Microsoft.SPOT.TinyCore (in Microsoft.SPOT.TinyCore.dll)
Syntax
'Declaration
Public Function IsButtonDown ( _
button As Button _
) As Boolean
public bool IsButtonDown(
Button button
)
public:
bool IsButtonDown(
Button button
)
member IsButtonDown :
button:Button -> bool
public function IsButtonDown(
button : Button
) : boolean
Parameters
- button
Type: Microsoft.SPOT.Hardware. . :: . .Button
A value that identifies the button to be inspected.
Return Value
Type: System. . :: . .Boolean
true if the specified button has been pressed; otherwise, false.
Remarks
The IsButtonDown method determines only whether the specified button has been pressed, whereas the IsButtonHeld method determines whether the specified button has remained in the down position for a period of time.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.