Get joystick's status.

Namespace:  AForge.Controls
Assembly:  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

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

Exceptions

ExceptionCondition
AForge..::.NotConnectedExceptionThe requested joystick is not connected to the system.
System..::.ApplicationExceptionJoystick was not initialized.

See Also