Check if certain button (or combination of buttons) is pressed.

Namespace:  AForge.Controls
Assembly:  AForge.Controls (in AForge.Controls.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public bool IsButtonPressed(
	Joystick..::.Buttons button
)

Parameters

button
Type: AForge.Controls..::.Joystick..::.Buttons
Button to check state of.

Return Value

Returns trueTruetruetrue (True in Visual Basic) if the specified button is pressed or falseFalsefalsefalse (False in Visual Basic) otherwise.

See Also