Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use joyGetPos
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01560907
Message ID:
01560937
Views:
122
I also get 16, because MSDN says:

"The joyGetNumDevs function returns the number of joysticks supported by the current driver or zero if no driver is installed.
...
Use the joyGetPos function to determine whether a given joystick is physically attached to the system. If the specified joystick is not connected, joyGetPos returns a JOYERR_UNPLUGGED error value."

But for me the joyGetPos() always returns BAD_PARAMETERS (=165) and never OK (=0) or UNPLAGGED (=166?).

I can not understand what goes wrong!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform