summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2013-12-16 15:57:53 -0800
committerKristian Høgsberg <krh@bitplanet.net>2013-12-16 16:15:47 -0800
commitd0cb10a36bbc95ecfc2ba3f225a02c07300bdfe3 (patch)
tree5f284fd6b4d5f803f8d9f870bea69fed17bd0dca /src
parentcd2f46f3d267e71e6877c2f4df654f8a262d873b (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/evdev.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/evdev.c b/src/evdev.c
index 5f5729b8..1802bbf9 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -460,15 +460,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)) {
- weston_log("device %s is a joystick, ignoring\n",
- device->devnode);
- return 0;
- }
-
if (TEST_BIT(abs_bits, ABS_X)) {
ioctl(device->fd, EVIOCGABS(ABS_X), &absinfo);
device->abs.min_x = absinfo.minimum;