udev: don't label high-button mice as joysticks (#8493)
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 23 Mar 2018 14:15:41 +0000 (00:15 +1000)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 23 Mar 2018 14:15:41 +0000 (15:15 +0100)
commit0cd6767cf0352c6c987e7d169945aea5fd5b3a96
tree7eb6bb30fdd3b14e4ea3b9a503cab692a6e46bfc
parentfbbffb8c0943f7163fe66d25820cf3060dd023b0
udev: don't label high-button mice as joysticks (#8493)

If a device exposes more than 16 mouse buttons, we run into the BTN_JOYSTICK
range, also labelling it as joystick. And since 774ff9b this results in only
ID_INPUT_JOYSTICK but no ID_INPUT_MOUSE.

Fixes #8460
src/udev/udev-builtin-input_id.c