Click or drag to resize
Accord.NET (logo)

JoystickGetCurrentStatus Method

Get joystick's status.

Namespace:  Accord.Controls
Assembly:  Accord.Controls (in Accord.Controls.dll) Version: 3.8.0
Syntax
public JoystickStatus GetCurrentStatus()
Request Example View Source

Return Value

Type: JoystickStatus
Returns current status of initialized joystick, which provides information about current state of all axes, buttons and point of view.
Exceptions
ExceptionCondition
NotConnectedExceptionThe requested joystick is not connected to the system.
ApplicationExceptionJoystick was not initialized.
Remarks

Note Note
Before using this method the joystick object needs to be initialized using Init(Int32) method or Joystick(Int32) constructor.

See Also