I'm having an odd issue with Windows joystick buttons... something somewhere is adding 24 to the button number pressed, so that the first button is 24, the second is 25, etc. It's doing it for both joysticks that I've tried with it (MS Sidewinder pad and Logitech WingMan Formula Force GP).
When debugging joytest.exe, I find that if I put a breakpoint at lines 109-111 of csjoywin.cpp and press the first button on the controller, btn is equal to 24. However, when it gets as far as line 804 of csinput.cpp
, CS_MAX_JOYSTICK_BUTTONS is 10 and throws out all button events with higher numbers.
I'm completely baffled on this one, any suggestions? Environment is WinXP MS VC++ 2005.
As a side note, dinputdefs.h looks a bit odd at lines 246, 250, and 254. The numbers 24 and 28 are there three times, and it appears that the numbers 200 and 204, 232 and 236, and 264 and 268 have been skipped. I know nothing about that file, stumbling on it when I was looking into the above issue, but figured while I'm writing about the button problem, I'd throw this one out there, too, just in case it was wrong. :)
-roncli
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Crystal-main mailing list Crystal-main@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/crystal-main Unsubscribe: mailto:[EMAIL PROTECTED]