diff options
author | Daniel Kurtz <djkurtz@chromium.org> | 2011-08-24 02:02:48 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2011-08-24 02:08:29 -0400 |
commit | d5051272fc4860e056e34c92080369a1b63c9378 (patch) | |
tree | 0761ada8006bb6b2ce9647000cc871adfca6481e /include/linux/input.h | |
parent | 4dc772d274abdedcccbcebab42d4bf0016ec2e80 (diff) |
Input: add BTN_TOOL_QUINTTAP for reporting 5 fingers on touchpad
"4-finger scroll" is a gesture supported by some applications and
operating systems.
"Resting thumb" is when a clickpad user rests a finger (e.g., a
thumb), in a "click zone" (typically the bottom of the touchpad) in
anticipation of click+move=select gestures.
Thus, "4-finger scroll + resting thumb" is a 5-finger gesture.
To allow userspace to detect this gesture, we send BTN_TOOL_QUINTTAP.
Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
Acked-by: Chase Douglas <chase.douglas@canonical.com>
Acked-by: Henrik Rydberg <rydberg@euromail.se>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'include/linux/input.h')
-rw-r--r-- | include/linux/input.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/input.h b/include/linux/input.h index 068784e17972..4de4b4661f84 100644 --- a/include/linux/input.h +++ b/include/linux/input.h | |||
@@ -503,6 +503,7 @@ struct input_keymap_entry { | |||
503 | #define BTN_TOOL_FINGER 0x145 | 503 | #define BTN_TOOL_FINGER 0x145 |
504 | #define BTN_TOOL_MOUSE 0x146 | 504 | #define BTN_TOOL_MOUSE 0x146 |
505 | #define BTN_TOOL_LENS 0x147 | 505 | #define BTN_TOOL_LENS 0x147 |
506 | #define BTN_TOOL_QUINTTAP 0x148 /* Five fingers on trackpad */ | ||
506 | #define BTN_TOUCH 0x14a | 507 | #define BTN_TOUCH 0x14a |
507 | #define BTN_STYLUS 0x14b | 508 | #define BTN_STYLUS 0x14b |
508 | #define BTN_STYLUS2 0x14c | 509 | #define BTN_STYLUS2 0x14c |