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”.