How do I add HIDAPI joystick code to my own joystick and gamecontroller program? Muchly appreciated, thank you.
The simple answer is that you write it. If you want a more specific answer you will have to ask a more specific question.
Then how do I add HIDAPI’s PS4, XBOX 360, and Nintendo Switch Pro Controllers to my own program?
Does SDL not recognize those controllers by default?
I’m unable to test this but SDL_gamepad_db.h contains mappings for controllers named “PS4 Controller”, “Xbox 360 Controller” and “Nintendo Switch Pro Controller”.
Well, next understandable for me on the Windows GUID Development Interface as it is, what is SDL2’s Joystick GUID Development Interface for both the HIDAPI program and my custom library?