Can anyone tell me how I could recognise the fire buttons being pressed on a game pad?
Preferably by just using one of the Windows .dlls (i.e. not Direct X), but if I have to Direct X.
All Help Gratefully Received!
Stevie P
~~~
Printable View
Can anyone tell me how I could recognise the fire buttons being pressed on a game pad?
Preferably by just using one of the Windows .dlls (i.e. not Direct X), but if I have to Direct X.
All Help Gratefully Received!
Stevie P
~~~
It can be done with Windows APIs. I have never done it myself so I will just name the APIs and then you can go on to the API Viewer and experiment with them. Here they are: JoyGetDevCaps, JoyGetNumDevs and JoyGetPos. This is everything you need to use the gamepad/joystick.
follow this link. It has a brief explanation of those commands and an example. http://www.vbapi.com/ref/funca.html