How does one communicate with a video game controller?
Hello and Merry Christmas to everyone!
I got a cool little controller for Christmas. It works real nice with the games I have installed on my computer.
Having said that, I now want to write a program that communicates with it. Not sure if I'm going to write anything that actually uses the controller, just yet, but I really just want to make stuff happen on the screen as I push the buttons and move the joysticks around. Is there a package that I need to download? It uses DirectX, if that's pertinent information, to answering my question.
Also, is there a way to write a program (I mean, I'm sure there is...) that allows the buttons and joysticks to emulate (is that the right word?) keys on the computer?
For example, maybe by using the the "four button cross" button on the left to do the same thing as pushing the four arrow keys on the keyboard. And making the four buttons on the right side (a, b, x and y) do things like, if I press one button, it's the same as if I pressed a key or a series of keys on the keyboard. Stuff like that.
I know it's kind of vague, but I really don't know what I want to do with this at the moment, except for knowing that I can put a dot on the screen and I can move it around with the joystick. I'm sorry if this doesn't make sense. But I just want to learn how to use a game controller in a program and not necessarily in a game.
I'm going to post this now as it seems I'm just rambling on and on.