Click or drag to resize
Accord.NET (logo)

JoystickStatusIsButtonPressed Method

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

Namespace:  Accord.Controls
Assembly:  Accord.Controls (in Accord.Controls.dll) Version: 3.8.0
Syntax
public bool IsButtonPressed(
	JoystickButtons button
)
Request Example View Source

Parameters

button
Type: Accord.ControlsJoystickButtons
Button to check state of.

Return Value

Type: Boolean
Returns if the specified button is pressed or otherwise.
See Also