res schrieb: > On 17.07.2006 06:32, Jörg Fischer wrote: >> This only fixes the symptom, reporting button 24 as button 1 and so on, >> and may be off by one, b/c I didn't know whether to use 1 or 0 as first > > AFAIK it's 0. (I think the device number offset was 1-based.) > >> ps. Can one of the devs check these patches into SVN please? >> I have no write access myself. > > Once you provide a better patch - we don't like hacks in SVN. I doubt > "23" is an universally working offset for the button number. The correct > approach is probably something like determining what buttons a joystick > really provides, and mapping the first button to index 0, the next found > button to index 1 and so on. >
DirectX should provide Joystck buttons already 0-based AFAIK. I rather suspect a bug in c_dfDIJoystick2 or DIJOYSTATE2 that ships with cs-Win32libs. -- J. Fischer ------------------------------------------------------------------------- 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]