blockJoystickInput
Joystick input implementation for interactive simulations
Extends from Modelica_DeviceDrivers.Utilities.Icons.BaseIcon (Base icon for blocks providing access to external devices), Modelica_DeviceDrivers.Utilities.Icons.PartialClockedDeviceDriverIcon.
Information
This block reads data from the joystick ID (0 = first joystick appearing in windows control panel). Multiple blocks can be used in order to retrieve data from more than one joysticks. Up to six axes and 32 buttons are supported. The input values ranges between -1 and 1 and can be scaled by the vector gain.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real[6] | gain | ones(6) | gain of axis output |
| Integer | ID | 0 | ID number of the joystick (0 = first joystick attached to the system) |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealOutput[6] | axes | ||
| Modelica.Blocks.Interfaces.RealOutput | pOV | ||
| Modelica.Blocks.Interfaces.IntegerOutput[32] | buttons |