aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/input-mt.c
diff options
context:
space:
mode:
authorDaniel Kurtz <djkurtz@chromium.org>2011-08-24 02:02:48 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2011-08-24 02:08:29 -0400
commitd5051272fc4860e056e34c92080369a1b63c9378 (patch)
tree0761ada8006bb6b2ce9647000cc871adfca6481e /drivers/input/input-mt.c
parent4dc772d274abdedcccbcebab42d4bf0016ec2e80 (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 'drivers/input/input-mt.c')
-rw-r--r--drivers/input/input-mt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/input/input-mt.c b/drivers/input/input-mt.c
index c48c81f0308d..9150ee78e00a 100644
--- a/drivers/input/input-mt.c
+++ b/drivers/input/input-mt.c
@@ -117,6 +117,7 @@ void input_mt_report_finger_count(struct input_dev *dev, int count)
117 input_event(dev, EV_KEY, BTN_TOOL_DOUBLETAP, count == 2); 117 input_event(dev, EV_KEY, BTN_TOOL_DOUBLETAP, count == 2);
118 input_event(dev, EV_KEY, BTN_TOOL_TRIPLETAP, count == 3); 118 input_event(dev, EV_KEY, BTN_TOOL_TRIPLETAP, count == 3);
119 input_event(dev, EV_KEY, BTN_TOOL_QUADTAP, count == 4); 119 input_event(dev, EV_KEY, BTN_TOOL_QUADTAP, count == 4);
120 input_event(dev, EV_KEY, BTN_TOOL_QUINTTAP, count == 5);
120} 121}
121EXPORT_SYMBOL(input_mt_report_finger_count); 122EXPORT_SYMBOL(input_mt_report_finger_count);
122 123