PDA

Click to See Complete Forum and Search --> : Using Game Port


steviep
Aug 25th, 2000, 04:01 AM
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
~~~

hypnos
Aug 27th, 2000, 12:08 PM
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.

Satcomguru
Aug 31st, 2000, 01:44 AM
follow this link. It has a brief explanation of those commands and an example. http://www.vbapi.com/ref/funca.html