The event input code in SDL is the almost the same as the actual
kernel joydev as they do exactly the same job.
They both take absolute values from the input system on Linux, evdev
simply passes through the absolute values while joydev reads them
directly. Then joydev and SDL (using events) translates them to
the -32767 to 32767 range.
|There is only one irrelevant difference. In joydev, by default coef[2]
|and coef[3] are the same unless calibrated with jscal. You can’t
|calibrate the evdev, so these are amalgamated to just coef[2] in SDL.
Not helpful I know, but using SDL and evdev works fine here and there
have been no other complaints. Please take a look at the code, but this
seems peculiar to Freds system.
Stephane, can you compile SDL with DEBUG_INPUT_EVENTS defined.
Fred, can you then run a program and send any output.
(Sam, do you want us to take this off list until resolved?)On Sat, 2004-03-06 at 15:57, Stephane Marchesin wrote:
Ok, I sent Fred the “latest-latest” CVS .so and here are the results :
- As before, everything works fine without evdev
- With evdev, the axis values are garbled (but there is no crash), while
the “jstest” program gives good axis valuesMaybe we should look at the jstest source code to see where it differs
from SDL joystick code ?
–
Alan.
“One must never be purposelessnessnesslessness.”
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20040306/41c7a157/attachment.pgp