views:

70

answers:

1

How does one interface a joypad under Windows?

Is there a WinAPI method, or must DirectX be used? Can anyone provide some pointers as to how to get started?

Thanks!

+2  A: 

You can use the multimedia API in mmsystem.h. joyGetNumDevs() to discover joystick numbers, joyGetPos() to get the position. SDK docs are here.

Hans Passant
Perfect, thanks! Got the joystick working and driving my servos within minutes.
MrZebra