diff options
author | Nikolai Kondrashov <spbnick@gmail.com> | 2010-09-02 18:09:13 +0400 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2010-09-07 10:40:36 +1000 |
commit | 0367e3871f02993b4ce04873d6e40df16fb0a202 (patch) | |
tree | fe6cd010ac062f423c001b7b674597bafa4b9875 /include | |
parent | Add BTN_TOUCH/STYLUS/STYLUS2 support. (diff) | |
download | xf86-input-evdev-0367e3871f02993b4ce04873d6e40df16fb0a202.tar.gz xf86-input-evdev-0367e3871f02993b4ce04873d6e40df16fb0a202.tar.bz2 xf86-input-evdev-0367e3871f02993b4ce04873d6e40df16fb0a202.zip |
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@gmail.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions