PDA

View Full Version : XInput header - Using XBox controller from ThinBASIC



Petr Schreiber
27-06-2024, 10:38
Dear users,

I would like to share a translation of Xinput header from Windows Software Development Kit, which enables you to use the XBox controller.

While XBox controller can be partially handled by TBDI module, certain aspects, such as trigger operation or vibration motors, do not cope well with DirectInput, which is used as backend for TBDI.

For a simple demonstration, I also attach a demo application, showing how to retrieve information from triggers, joysticks and buttons.

Please note that I attach version 1.0 of the headers - there may be some imprecisions and I am still discovering how the whole thing works.



Petr

Version history
1.0 - initial release