Simulation 3D Joystick
R2026bProcess input from asynchronous joystick device
Renamed from Joystick Input in R2025a
Libraries:
Simulink 3D Animation
Description
The Simulation 3D Joystick block provides interaction between a Simulink® model and the virtual world associated with a Simulink 3D Animation™ block. This block uses axes, buttons, and the point-of-view selector, if present. You can use this block as you would use any other Simulink source block. Its output ports reflect the status of the joystick controls for axes and buttons. The block also supports force-feedback devices.
The Simulation 3D Joystick block supports all joystick devices that use the Microsoft® APIs DirectInput and XInput
components as their communication protocols.
Ports
Input
Output
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"vrlib/Joystick Input"
Example: add_block("vrlib/Joystick Input","myModel/myBlock",MakeNameUnique="on")
