Determining Connected Joysticks Under Windows (133065)
The information in this article applies to:
- Microsoft Platform Software Development Kit (SDK) 1.0, when used with:
- the operating system: Microsoft Windows 2000
This article was previously published under Q133065
4.00
WINDOWS
kbmm
SUMMARY
The joystick API joyGetNumDevs() behaves differently on Windows 95 than it
does in other implementations, so a different technique, involving
joyGetPosEx(), is required to determine the number of joysticks available
during game play.
This article provides the code for a function called JoysticksConnected()
that demonstrates how to determine the number of connected joysticks.
Modification Type: | Minor | Last Reviewed: | 7/11/2005 |
---|
Keywords: | KB133065 |
---|
|