Initializes a new instance of the Joystick class.

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

Syntax

C#
public Joystick(
	int id
)

Parameters

id
Type: System..::.Int32
Joystick ID to initialize, [0, 15].

Remarks

This constructor initializes joystick with specified ID using Init(Int32) method, so the object becomes ready for querying joystick's status.

See Also