From: Kristian Høgsberg Date: Mon, 16 Dec 2013 23:57:53 +0000 (-0800) Subject: evdev: Drop joystick rejection heurstics X-Git-Tag: 0.1.0~110 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fef5004c462ae0d1b195cd21fd253ad17571a1c5;p=platform%2Fupstream%2Flibinput.git evdev: Drop joystick rejection heurstics We now no longer add joysticks at all. They show up as absolute motion devices without has_button, so we don't add them as a pointer. We may add a keyboard for the keyboard-style keys, but that's fine. With the previous commit, we no longer generate spurious absolute pointer motion for the abs axes. https://bugs.freedesktop.org/show_bug.cgi?id=71687 --- diff --git a/src/evdev.c b/src/evdev.c index 0f6ae1c..8ee8a16 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -489,14 +489,6 @@ evdev_configure_device(struct evdev_device *device) ioctl(device->fd, EVIOCGBIT(EV_ABS, sizeof(abs_bits)), abs_bits); - if (TEST_BIT(abs_bits, ABS_WHEEL) || - TEST_BIT(abs_bits, ABS_GAS) || - TEST_BIT(abs_bits, ABS_BRAKE) || - TEST_BIT(abs_bits, ABS_HAT0X)) { - /* Device %s is a joystick, ignoring. */ - return 0; - } - if (TEST_BIT(abs_bits, ABS_X)) { ioctl(device->fd, EVIOCGABS(ABS_X), &absinfo); device->abs.min_x = absinfo.minimum;