Re:V-USB – A Firmware-Only USB Driver for Atmel AVR Microcon...
by glassconclusion on Monday October 11, 2021 @05:58AM
(#28826604)
Interesting. I know how tedious it can be to get this working across platforms (or even just one!). So, I guess it is possible to use this on linux (https://www.kernel.org/doc/html/latest/input/ff.html)?
I'm loosely involved with the HapticsIF (https://hapticsif.org). They are working towards a new haptic usage page. If I remember the sentiment of those meetings correctly, USB PID was considered very old and not easy to work with. Besides that a more recent haptics Usage page was considered limiting (only for single effects).
Re:V-USB – A Firmware-Only USB Driver for Atmel AVR Microcon...
by sgtnoodle on Monday October 11, 2021 @07:55PM
(#28834442)
The USB protocol and driver are more a means for me than an end. What you linked to looks like the userspace facing API, rather than the USB PID driver specifically. My goal was to get Euro Truck Simulator 2 working. Presumably it's using the FF API, either directly or perhaps through a steam proton adaptor.
I got Dirt Rally sorta working too, but it wasn't really playable because the game doesn't seem to support multiple input devices, and I wired up my pedals through a separate 32u4 MCU.
In order to get my wheel working on linux, I had to modify the arduino library to comply with the spec. It was clearly written to work with windows. I haven't tried it on windows yet, but I suspect that it wouldn't work. There are smaller wheel vendors with stale customer support tickets regarding linux incompatibility.
I assume this is one of the reasons that larger companies like Logitech provide their own custom drivers, despite being 90% compatible with the generic HID spec.
If you're curious, I forked the arduino library with my fixes: https://github.com/sgtnoodle/ArduinoJoystickWithFFBLibrary