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:
01561093
Views:
119
I wish you a happy new year, full of health and luck!

At last a friend of mine (using Chrome web-browser) send to me the source and the exe files of the site CodeProject.

The Raw Input.exe detected no joystick ... BECAUSE:

After many hours of testing on different PC I discovered that my "Game port 15pin-to-usb cable" IS ONLY A USB-to-15pin USB EXTENSION CABLE and NOTHING MORE!! (see the attached .jpg picture!!).

It is the "EFB K5306.020 USB to GAME port adapter" and I can not understand what is the usage of this extension cable...
Never buy this, in order to connect your 15pin joystick to a usb port!!!

At last I found that:
The code 165 from the joyGetPos() means ALSO that no detection of a game port for this device!
I tested it on a PC with WindowsXP SP3 and a SoundBlaster sound card with Game port 15pin, without a joystic connected.
?joyGetPos(0,@buf) && returns 167 (joystick unplugged)... correct!
?joyGetPos(1,@buf) && returns 165 (no game port for device 1)... correct!
...
?joyGetPos(15,@buf) && returns 165 (no game port for device 15)... correct!

?joyGetNumDevs() && returns 16. Means that the windows CAN communicate with 16 different Game Ports IF WE INSTALL them...

I will study RawInput source code, it is very interesting and I will try to convert it to VFP code.

Thank you for your help!
Previous
Reply
Map
View

Click here to load this message in the networking platform