[Plib-users] Auto-calibration working in windows, not in Linux
Brought to you by:
sjbaker
From: Julien M. <dp...@ya...> - 2004-12-05 17:35:25
|
Hello, I'm playing the game Torcs, and i've two racing wheels (1 Logitech Formula Force GP, and one cheap APM wheel). I've exactly the same problem with both. In windows they're working correctly (probably using the calibration values from the control panel?), in Linux often the movement isn't detected at all. I'm using the CVS version of Torcs, and the 1.8.3 of PLIB. I checked with js_demo, it always returns 0 for the axis (buttons are OK). so i modified the js_demo source to replace the read()'s by rawRead's, i get values like 30 - 400 - 900. Something strange is that those values are different from those i get with jscalibrator (it uses the libjsw library IIRC but i thought the values displayed were also those given verbatim by the OS?) I then modified it putting back the read's, and at the beginning i've put setMin/MaxRange and setCenter and hardcoded the values for my wheel. This way i got correct values -1,0,1 with read. In windows there is a centralized standard location for the calibration values of the control panel (registry?), but i think there is no such thing in Linux. Is there a plan to use something similar in Linux? (jscalibrator writes a ~/.joystick, or maybe we can use a system-wide file like /etc/joystick?) Regards, D.plomat Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails ! Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com/ Avec Yahoo! faites un don et soutenez le Téléthon en cliquant sur http://www.telethon.fr/030-Don/10-10_Don.asp |