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!
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!
You can use the multimedia API in mmsystem.h. joyGetNumDevs() to discover joystick numbers, joyGetPos() to get the position. SDK docs are here.