There are a number of devices that have the ID_INPUT_JOYSTICK tag set by udev,
usually because of seemingly random event codes set. We cannot rely on
ID_INPUT_JOYSTICK to be accurate enough.
Fixes #517
This reverts commit
eededbeb7faa2b6182c02a84884f54c1cb1d8a2a.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
evdev_disable_accelerometer_axes(device);
}
- if (udev_tags & EVDEV_UDEV_TAG_JOYSTICK) {
- evdev_log_info(device, "device is a joystick, ignoring\n");
+ /* libwacom *adds* TABLET, TOUCHPAD but leaves JOYSTICK in place, so
+ make sure we only ignore real joystick devices */
+ if (udev_tags == (EVDEV_UDEV_TAG_INPUT|EVDEV_UDEV_TAG_JOYSTICK)) {
+ evdev_log_info(device,
+ "device is a joystick, ignoring\n");
return NULL;
}