Get joystick’s status.
Namespace:
AForge.ControlsAssembly: AForge.Controls (in AForge.Controls.dll) Version: 2.2.5.0 (2.2.5.0)
Syntax
| C# |
|---|
public Joystick..::.Status GetCurrentStatus() |
Return Value
Returns current status of initialized joystick, which provides information about current state of all axes, buttons and point of view.
Remarks
Exceptions
| Exception | Condition |
|---|---|
| AForge..::.NotConnectedException | The requested joystick is not connected to the system. |
| System..::.ApplicationException | Joystick was not initialized. |