General information
Category:
Windows API functions
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only