I am working on a course project at a university where we need to receive input from a dualshock in our C++ program to then do something with it, but that is not from that story. I've researched a few options and the farther I looked the more confused I got. I was looking for your help in this area. I was hoping somebody explains to me the process of interacting with gamepads from first principles, what most popular options for C++ are and, finally, a few words about how to implement it with a ps4 controller. I have so far found out about Microsoft XInput API which (if I got it) is a more recent alternative of DirectInput. I looked at a few code examples and got lost lost.
Any reference, recommended books, tutorials, links, explanations, any help will be 100% useful and appreciated, so please throw it all at me. I am trying to understand it in the first place. Thank you in advance.
What I have tried:
So as I sad I read a couple of articles about XInput and its predecessor DirectInput. In theory everything feels fine, but in practices I didn't get any of the tutorials or sample codes.