S-Function for reading joystick values on Simulink

S-Function build using Windows JOYINFOEX (Winmm.lib). This S-Function supports Rapid Accelerator. Currently outputs 4 axis and 12 buttons.

Download
Download

You are now following this Submission

Cite As

Johannes Soikkeli (2026). S-Function for reading joystick values on Simulink (https://www.mathworks.com/matlabcentral/fileexchange/111265-s-function-for-reading-joystick-values-on-simulink), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: sfun_joystick.zip

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.5

Returned the warning when deviceID is wrong.

Download
1.0.4

typo

Download
1.0.3

There was a small bug in the c-code; Fixed now. Improved installation guide.

Download
1.0.2

Removed the WinMM.dll file based on MathWorks policies.

Download
1.0.1

Removed already compiled .mex file due to MathWorks policies.

Download
1.0.0

Download