-
Notifications
You must be signed in to change notification settings - Fork 81
Home
Bernat edited this page Sep 17, 2019
·
9 revisions
Steering wheels are seen by the system as joysticks with several axes, buttons and FFB. The axes and buttons are no problem, but FFB uses propietary protocols.
Currently, the Linux kernel provides an API to access FFB in Logitech wheels through evdev. SDL2 has also APIs for handling FFB.
Logitech FFB docs:
Kernel related links:
- https://www.kernel.org/doc/html/latest/input/ff.html
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/input/ff-memless.c
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/hid/hid-lg4ff.c
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/hid/hid-logitech-hidpp.c
- https://www.kernel.org/doc/Documentation/hid/hidraw.txt
SDL2 related links:
- https://wiki.libsdl.org/CategoryForceFeedback
- https://hg.libsdl.org/SDL/file/d953f28d33e3/src/haptic/linux/SDL_syshaptic.c
Examples of use:
- https://sourceforge.net/p/linuxconsole/code/ci/master/tree/utils/fftest.c
- https://sourceforge.net/p/linuxconsole/code/ci/master/tree/utils/ffset.c
Others:
- https://github.com/Eliasvan/Linux-Force-Feedback/wiki
- https://github.com/edwin-v/linux-hid-lg4ff-next
- https://lkml.org/lkml/2014/4/26/115
- https://github.com/ValveSoftware/Proton/issues/2366#issuecomment-529254481
- https://steamcommunity.com/groups/linuxff/discussions/0/405692224235574471/
- https://forum.scssoft.com/viewtopic.php?f=109&t=249622
- https://www.desktopsimulators.com/forum/showthread.php?tid=378
- https://lkml.org/lkml/2014/5/21/325