Name | Description |
---|---|
![]() | Joystick input implementation for interactive simulations |
![]() | Keyboard input implementation for interactive simulations |
![]() | SpaceMouse input implementation for interactive simulations |
![]() | Keyboard input implementation for interactive simulations |
![]() |
This block reads data from the joystick ID (0 = first joystick appearing in windows control panel). Multible blocks can be used in order to retrieve data from more than one joysticks. Up to six axes and eight buttons are supported. The input values ranges between -1 and 1 and can be scaled by the vector gain.
Extends from Modelica_DeviceDrivers.Utilities.Icons.BaseIcon (Base icon for blocks providing access to external devices), Modelica_DeviceDrivers.Utilities.Icons.PartialClockedDeviceDriverIcon.
Name | Description |
---|---|
gain[6] | gain of axis output |
ID | ID number of the joystick (0 = first joystick attached to the system) |
Name | Description |
---|---|
axes[6] | |
pOV | |
buttons[8] |
This block reads data from the keyboard. The monitored key is selected via the parameter keyCode. Note, that keystrokes will not be captured and the focused window will process them.
Extends from Modelica_DeviceDrivers.Utilities.Icons.BaseIcon (Base icon for blocks providing access to external devices), Modelica_DeviceDrivers.Utilities.Icons.PartialClockedDeviceDriverIcon.
Name | Description |
---|---|
keyCode | Monitored Key |
Name | Description |
---|---|
keyState |
This block reads data from the 3Dconnexion SpaceMouse. It provides the six axis and up to sixteen button inputs. Note, that only the first SpaceMouse attached on the system can be read.The input values ranges between approx. -1 and 1 and can be scaled by the vector gain.
Using the SpaceMouse in Linux is possible, but requires that the Linux drivers offered by 3Dconnexion are installed and active (http://www.3dconnexion.com/).
Extends from Modelica_DeviceDrivers.Utilities.Icons.BaseIcon (Base icon for blocks providing access to external devices), Modelica_DeviceDrivers.Utilities.Icons.PartialClockedDeviceDriverIcon.
Name | Description |
---|---|
gain[6] | gain of axis output |
Name | Description |
---|---|
axes[6] | |
buttons[16] |
This block reads data from the keyboard. The arrow keys, space and return are monitored. Note, that keystrokes will not be captured and the focused window will process them.
Extends from Modelica_DeviceDrivers.Utilities.Icons.BaseIcon (Base icon for blocks providing access to external devices).
Name | Description |
---|---|
sampleTime | sample time for input update |
Name | Description |
---|---|
keyUp | |
keyDown | |
keyRight | |
keyLeft | |
keyReturn | |
keySpace |