projects
/
platform
/
upstream
/
libinput.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee5f763
)
evdev: Stop looking for pointer buttons when we get to BTN_JOYSTICK
author
Kristian Høgsberg
<krh@bitplanet.net>
Mon, 14 Oct 2013 22:28:01 +0000
(15:28 -0700)
committer
Jonas Ådahl
<jadahl@gmail.com>
Sun, 10 Nov 2013 16:51:33 +0000
(17:51 +0100)
We don't want to mark a touchscreen as a button device just because it
exposes the BTN_TOUCH and BTN_TOOL buttons.
src/evdev.c
patch
|
blob
|
history
diff --git
a/src/evdev.c
b/src/evdev.c
index
48e5470
..
e9235d9
100644
(file)
--- a/
src/evdev.c
+++ b/
src/evdev.c
@@
-524,7
+524,7
@@
evdev_handle_device(struct evdev_device *device)
break;
}
}
- for (i = BTN_MISC; i <
KEY_O
K; i++) {
+ for (i = BTN_MISC; i <
BTN_JOYSTIC
K; i++) {
if (TEST_BIT(key_bits, i)) {
device->caps |= EVDEV_BUTTON;
break;