Initialize joystick with the specified ID.
Namespace:
AForge.ControlsAssembly: AForge.Controls (in AForge.Controls.dll) Version: 2.2.5.0 (2.2.5.0)
Syntax
| C# |
|---|
public void Init( int id ) |
Parameters
- id
- Type: System..::.Int32
Joystick’s ID to initialize, [0, 15].
Remarks
Exceptions
| Exception | Condition |
|---|---|
| System..::.ArgumentException | Invalid joystick ID was specified. It must be in [0, 15] range. |
| AForge..::.NotConnectedException | The requested joystick is not connected to the system. |