diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-01-08 15:04:07 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2013-01-08 15:07:04 +1000 |
commit | 454194f4b530af5d7f92a3b28c28495b4faac547 (patch) | |
tree | 3cf29e70d669991b0b3bad68d2a67f63f6ba2e01 /man | |
parent | Drop special XKB option handling (diff) | |
download | xf86-input-evdev-454194f4b530af5d7f92a3b28c28495b4faac547.tar.gz xf86-input-evdev-454194f4b530af5d7f92a3b28c28495b4faac547.tar.bz2 xf86-input-evdev-454194f4b530af5d7f92a3b28c28495b4faac547.zip |
Force a button if MT axes are present and it is not a gamepad
We expect at least BTN_TOUCH for anything with MT axes, but devices that
don't have that need a button class regardless. Some gamepads define
MT axes but no buttons, causing a bug in the server when they post a
TouchBegin.
[ 97436.293] (EE) BUG: triggered 'if (!b || !v)'
[ 97436.293] (EE) BUG: exevents.c:929 in UpdateDeviceState()
So, ignore it, if it is a joystick (e. g. if it have BTN_JOYSTICK defined).
Otherwise, fake a button.
This patch basically merges two patches written by Peter Hutterer
<peter.hutterer@who-t.net>.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'man')
0 files changed, 0 insertions, 0 deletions