Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linux force feedback wheel support
03-01-2007, 03:04 PM,
#18
 
thelusiv, I looked into this a long time ago when I wanted to integrate FF into the SDL, or at least make my FF code collaborate with SDL.
SDL can use /dev/input/jsX or /dev/input/eventX depending on how it's compiled. If it uses the second method, then extending the SDL_Joystick (or whatever it's called) to support FF would be easy.

I don't know of any non-intrusive method to do what you are trying to do. I think maybe you could use the name of the device (you can retrieve that with SDL, see the joystick test app in SDL's source code).
Then I think maybe you can also retrieve the name of the joystick through /dev/input/eventX. Then it's just a matter of iterating over the files in /dev/input/eventX and looking for a name match.

That method is not perfect, I don't think one should assume event devices are named /dev/input/eventX. Another problem is that it does not work if you have two devices with the same name (e.g. two "anonymous" devices, or two identical devices).
Reply


Messages In This Thread
Linux force feedback wheel support - by thelusiv - 02-21-2007, 07:08 AM
Re: Linux force feedback wheel support - by Nigo - 02-21-2007, 01:48 PM
[No subject] - by thelusiv - 02-21-2007, 08:16 PM
[No subject] - by joevenzon_phpbb2_import3 - 02-22-2007, 12:29 AM
[No subject] - by stenyak - 02-22-2007, 02:58 PM
[No subject] - by jdeneux - 02-22-2007, 05:29 PM
[No subject] - by Jey - 02-22-2007, 09:34 PM
[No subject] - by thelusiv - 02-22-2007, 11:57 PM
[No subject] - by stenyak - 02-23-2007, 11:34 AM
[No subject] - by stenyak - 02-24-2007, 12:01 PM
[No subject] - by thelusiv - 02-25-2007, 12:36 PM
[No subject] - by stenyak - 02-25-2007, 12:38 PM
[No subject] - by thelusiv - 02-25-2007, 12:39 PM
[No subject] - by jdeneux - 02-25-2007, 01:39 PM
[No subject] - by thelusiv - 02-25-2007, 03:25 PM
[No subject] - by jdeneux - 02-26-2007, 05:29 PM
[No subject] - by thelusiv - 02-27-2007, 06:19 AM
[No subject] - by jdeneux - 03-01-2007, 03:04 PM
[No subject] - by stenyak - 03-01-2007, 04:41 PM
[No subject] - by Kada - 03-01-2007, 09:42 PM
[No subject] - by thelusiv - 03-02-2007, 02:59 AM
G25 Wheel - by anrp - 03-02-2007, 11:50 PM
[No subject] - by Kada - 03-03-2007, 12:47 AM
[No subject] - by Kada - 03-03-2007, 11:39 AM
[No subject] - by thelusiv - 03-03-2007, 07:41 PM
[No subject] - by joevenzon_phpbb2_import3 - 03-03-2007, 10:11 PM
[No subject] - by stenyak - 03-03-2007, 10:49 PM
[No subject] - by thelusiv - 03-04-2007, 07:04 AM
[No subject] - by stenyak - 03-04-2007, 07:12 AM
[No subject] - by thelusiv - 03-04-2007, 07:17 AM
[No subject] - by stenyak - 03-04-2007, 09:36 AM
[No subject] - by thelusiv - 03-05-2007, 04:58 AM
[No subject] - by Kada - 03-06-2007, 09:33 PM
[No subject] - by thelusiv - 03-07-2007, 01:57 AM
[No subject] - by Noneus - 03-07-2007, 07:07 AM
[No subject] - by Kada - 03-07-2007, 09:57 AM
[No subject] - by jdeneux - 03-07-2007, 02:32 PM
[No subject] - by thelusiv - 03-07-2007, 07:09 PM
[No subject] - by Kada - 03-07-2007, 10:02 PM
[No subject] - by thelusiv - 03-07-2007, 10:26 PM
libff.sf.net - by jdeneux - 03-10-2007, 09:32 AM
[No subject] - by kyousai - 11-03-2007, 05:32 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)