xf86-input-evdev: Changes to 'master'
Peter Hutterer
whot at kemper.freedesktop.org
Tue Sep 7 16:13:18 PDT 2010
src/evdev.c | 89 +++++++++++++++++-------------------------------------------
1 file changed, 26 insertions(+), 63 deletions(-)
New commits:
commit 0367e3871f02993b4ce04873d6e40df16fb0a202
Author: Nikolai Kondrashov <spbnick at gmail.com>
Date: Thu Sep 2 18:09:13 2010 +0400
Clean up button code to number mapping
Now BTN_MOUSE, BTN_MISC and BTN_DIGI button ranges are all mapped to the
same lower numbers including first three, corresponding to the LMR mouse
buttons. Like this:
1 BTN_LEFT BTN_0 BTN_TOUCH
2 BTN_MIDDLE BTN_1 BTN_STYLUS
3 BTN_RIGHT BTN_2 BTN_STYLUS2
8 BTN_SIDE BTN_3
9 BTN_EXTRA BTN_4
10 BTN_FORWARD BTN_5
11 BTN_BACK BTN_6
12 BTN_TASK BTN_7
13 BTN_8
14 BTN_9
This streamlines the button mapping under the assumption that these ranges
don't generally appear in a single device simultaneously. If they do appear,
they will simply report overlapping button numbers.
Signed-off-by: Nikolai Kondrashov <spbnick at gmail.com>
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
commit 617a09e298768d0a1d33cb6b367410455489e8b8
Author: Nikolai Kondrashov <spbnick at gmail.com>
Date: Tue Sep 7 10:38:20 2010 +1000
Add BTN_TOUCH/STYLUS/STYLUS2 support.
These three buttons are mapped into buttons 1/2/3, respectively.
Overlapping range with BTN_LEFT/MIDDLE/RIGHT, assuming that these
ranges don't generally appear in a single device simultaneously.
Signed-off-by: Nikolai Kondrashov <spbnick at gmail.com>
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
More information about the xorg-commit
mailing list