Hi,
David Bronke schrieb:
After connecting 4 joysticks to my system and running my app, which
loads the joystick plugin, I get the following:

crystalspace.device.joystick.linux:
  Opened joystick device /dev/input/js0 as fd#11
  Opened joystick device /dev/input/js1 as fd#22
  Opened joystick device /dev/input/js2 as fd#22
  Opened joystick device /dev/input/js3 as fd#22
  Joystick number 0 (SAITEK Saitek ST290 Pro) has 6 axes and 6 buttons.Driver
  version is 2.1.0.

Two questions on the above:
1. Why do js1, js2, and js3 apparently all share the same file descriptor?
2. Why is only one of the joysticks recognized after all 4 devices
have been opened?


Could you provide the output of:
ls -l /dev/input/js*

This can happen if js1,2,3 have the same (otherwise wrong) Major/Minor and thus
effectively _are_ the same Joysticks IMHO.

The code looks OK to _me_, it is in plugins/device/joystick/linux
so you could check what happened exactly
(with gdb or some "printf"s).


-- Joerg



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Crystal-main mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-main
Unsubscribe: mailto:[EMAIL PROTECTED]

Reply via email to