开发者

Interfacing a joypad in Windows

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜