Share via


IsButtonHeld Method

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

Determines whether the specified button has been pressed and whether it remained in the down position for a period of time when it was pressed.

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

Syntax

'Declaration
Public Function IsButtonHeld ( _
    button As Button _
) As Boolean
public bool IsButtonHeld(
    Button button
)
public:
bool IsButtonHeld(
    Button button
)
member IsButtonHeld : 
        button:Button -> bool 
public function IsButtonHeld(
    button : Button
) : boolean

Parameters

Return Value

Type: System. . :: . .Boolean
true if the specified button has been pressed and if it remained in the down position for a period of time when it was pressed; otherwise, false.

Remarks

The IsButtonHeld method determines whether the specified button has been pressed and has remained in the down position for a period of time, whereas the IsButtonDown method determines only whether the specified button has been pressed.

.NET Framework Security

See Also

Reference

ButtonDevice Class

Microsoft.SPOT.Input Namespace