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?
开发者_JAVA百科Thanks!
You can use the multimedia API in mmsystem.h. joyGetNumDevs() to discover joystick numbers, joyGetPos() to get the position. SDK docs are here.
精彩评论