Repository navigation
A feature release that lets a device entry depend on the HID driver, so configurations stay correct when another driver renames the axes of the same device.
New
driverlimits a device entry to one HID driver. A driver may replace the report descriptor of a device and so give the same fields other usages. hid-tmff2 does this for the Thrustmaster T300 RS: it names the pedals Rz, Z, and Y, while the wheel itself, under hid-generic, names them Y, Rz, and Slider. An entry withdriveronly applies with that driver bound, and wins over an entry without one. See CONFIG.md.xmorpheo listshows the bound driver of each device, andxmorpheo templateadds it as a commenteddriverkey.
Fixes
- The T300 RS example only applies with hid-tmff2. Under hid-generic, it swapped brake and gas instead of brake and clutch.
examples/t300rs-swap-pedals.tomlnow hasdriver = "tmff2". - Switching drivers detaches a program that no longer matches. When a driver bound to a configured device but no entry matched it with that driver, the udev rule kept the old program attached. It now detaches it.
Tested hardware
- Thrustmaster T300 RS in PC mode, with both hid-tmff2 and hid-generic. Its own descriptor under hid-generic is now documented in docs/descriptors/t300rs_pc_mode.md.
Upgrading
make
sudo make install
sudo xmorpheo attach --all --replaceIf you copied the T300 RS example into /etc/xmorpheo/conf.d, add driver = "tmff2" to it, or copy it again.