evdev: disable the mode button on the Cyborg RAT 5
This button sends a release N, press N+1 on each press, cycling through the three event codes supported. This causes a stuck button since the current mode is never released. Long-term this better served by a set of switches that toggle accordingly, for now disable the button codes. https://bugs.freedesktop.org/show_bug.cgi?id=92127 Signed-off-by:Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by:
Hans de Goede <hdegoede@redhat.com>
- src/evdev.c 36 additions, 0 deletionssrc/evdev.c
- src/evdev.h 1 addition, 0 deletionssrc/evdev.h
- test/Makefile.am 1 addition, 0 deletionstest/Makefile.am
- test/device.c 33 additions, 0 deletionstest/device.c
- test/litest-device-cyborg-rat-5.c 71 additions, 0 deletionstest/litest-device-cyborg-rat-5.c
- test/litest.c 2 additions, 0 deletionstest/litest.c
- test/litest.h 1 addition, 0 deletionstest/litest.h
- udev/90-libinput-model-quirks.hwdb 7 additions, 0 deletionsudev/90-libinput-model-quirks.hwdb
- udev/90-libinput-model-quirks.rules.in 4 additions, 0 deletionsudev/90-libinput-model-quirks.rules.in