From: Mally <ma...@tk...> - 2001-05-13 23:54:42
|
My joystick (Microsoft Sidewinder 3D Pro) works in 0.7.6 win32 but not in 0.7.7 win32. I've tested all sorts of combinations of joystick input parameters in system.fgfsrc and preferences.xml, even added --control=joystick, but all to no avail. I've read the PLIB/doc/js/index.htm and I'm confused as to the intention of the min-range & max-range parameters. Are these saying that full-scale defections of each axis will deliver raw values of 0 and 65535 to fgfs, or are they saying that if my js_demo range is -1.0 to +1.0, I should set min-range and max-range to -1.0 and +1.0? (I've tried this). What are saturation and tolerance? Is there a known problem with joysticks in 0.7.7 under win32 (in which case maybe I can help investigate/fix), or am I doing something wrong? More Detail: js_demo recognises the joystick and each axis (0 to 3) ranges from values -1.0 to +1.0: Joystick test program. ~~~~~~~~~~~~~~~~~~~~~~ Joystick 1 not detected +---------------JS.0-----------------+---------------JS.1-----------------+ | Btns Ax:0 Ax:1 Ax:2 Ax:3 Ax:4 Ax:5 | ~~~ Not Detected ~~~ | +------------------------------------+------------------------------------+ | 0000 +1.0 +1.0 +1.0 +1.0 -1.0 -1.0 | . . . . . . . . . | The fsfs32.exe output looks like it also recognises the joystick: Initializing joysticks Initializing joystick 0 Axis 0: using control /controls/aileron dead-band is 0 offset is 0 factor is 1 tolerance is 0.002 saturation is 1 min-range is 0 max-range is 65535 center is 32767.5 <snip> ... </snip> Joystick 1 not found Done initializing joysticks Mally |