开发者

Interfacing a joypad in Windows

开发者 https://www.devze.com 2022-12-17 21:09 出处:网络
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?

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

精彩评论

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

关注公众号