-
Notifications
You must be signed in to change notification settings - Fork 66
Programming resources related to steering wheels
Bernat edited this page Apr 28, 2024
·
2 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 proprietary protocols.
Currently, the Linux kernel provides an API to access FFB in Logitech wheels through evdev. SDL2 has also APIs for handling FFB.
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
- https://github.com/edwin-v/linux-hid-lg4ff-next
KLGD (Kernel Library for Gaming Devices):
- https://gitlab.com/madcatx/LinuxFF-KLGD
- https://github.com/Eliasvan/Linux-Force-Feedback/wiki/Logitech-gaming-devices-using-KLGD
- https://github.com/chrisaq/linux-klgd
- https://github.com/edwin-v/hid-lg4ff-klgd
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://lkml.org/lkml/2014/4/26/115
- https://github.com/ValveSoftware/Proton/issues/2366#issuecomment-529254481
- https://github.com/ValveSoftware/Proton/issues/2366#issuecomment-529150586
- 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