Skip to content

xmorpheo 0.2.0

Latest

Choose a tag to compare

@kakra kakra released this 27 Nov 01:27
· 9 commits to main since this release
f4e9bd6

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

  • driver limits 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 with driver only applies with that driver bound, and wins over an entry without one. See CONFIG.md.
  • xmorpheo list shows the bound driver of each device, and xmorpheo template adds it as a commented driver key.

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.toml now has driver = "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

Upgrading

make
sudo make install
sudo xmorpheo attach --all --replace

If you copied the T300 RS example into /etc/xmorpheo/conf.d, add driver = "tmff2" to it, or copy it again.