Simulink Block / S-Function for Windows XInput API (XBOX Controller)
This repo includes 'Level 2 C++ MEX S-Functions' to create Simulink Blocks for Inputs based on Microsoft XInput API. This Includes XBOX 360 and XBOX ONE Controllers (Gamepads).
2 S-Functions
4 Simulink Demo Models
Advanteges over 'Joystick Input' (VRJoystick) Block:
Tested on Windows 10 1903.
Tested with XBOX ONE Controller via Bluetooth and Xbox Wireless Adapter for Windows 10
XInput by Microsoft: https://docs.microsoft.com/en-us/windows/win32/xinput/getting-started-with-xinput
XInput Tutorial by Lawrence McCauley: https://lcmccauley.wordpress.com/2014/01/05/gamepad-input-tutorial/
XBOX ONE Controller Icon by Neolau1119: https://www.iconfinder.com/Neolau1119
Simulink persistent Image allocation Tutorial by Guy on Simulink: https://blogs.mathworks.com/simulink/2016/09/08/including-a-mask-image-in-your-block/