From: Daniel Kurtz <djkurtz@chromium.org>
To: chase.douglas@canonical.com, dmitry.torokhov@gmail.com,
rydberg@euromail.se
Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org,
olofj@chromium.org, chris@cnpbagwell.com,
Daniel Kurtz <djkurtz@chromium.org>
Subject: [PATCH 8/9 v5] Input: add BTN_TOOL_QUINTTAP for reporting 5 fingers on touchpad
Date: Mon, 22 Aug 2011 19:06:02 +0800 [thread overview]
Message-ID: <1314011163-19098-9-git-send-email-djkurtz@chromium.org> (raw)
In-Reply-To: <1314011163-19098-1-git-send-email-djkurtz@chromium.org>
"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>
---
drivers/input/input-mt.c | 1 +
include/linux/input.h | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/input/input-mt.c b/drivers/input/input-mt.c
index c48c81f..9150ee7 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)
input_event(dev, EV_KEY, BTN_TOOL_DOUBLETAP, count == 2);
input_event(dev, EV_KEY, BTN_TOOL_TRIPLETAP, count == 3);
input_event(dev, EV_KEY, BTN_TOOL_QUADTAP, count == 4);
+ input_event(dev, EV_KEY, BTN_TOOL_QUINTTAP, count == 5);
}
EXPORT_SYMBOL(input_mt_report_finger_count);
diff --git a/include/linux/input.h b/include/linux/input.h
index 068784e..4de4b46 100644
--- a/include/linux/input.h
+++ b/include/linux/input.h
@@ -503,6 +503,7 @@ struct input_keymap_entry {
#define BTN_TOOL_FINGER 0x145
#define BTN_TOOL_MOUSE 0x146
#define BTN_TOOL_LENS 0x147
+#define BTN_TOOL_QUINTTAP 0x148 /* Five fingers on trackpad */
#define BTN_TOUCH 0x14a
#define BTN_STYLUS 0x14b
#define BTN_STYLUS2 0x14c
--
1.7.3.1
next prev parent reply other threads:[~2011-08-22 11:08 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-22 11:05 [PATCH 0/9 v5] Synaptics image sensor support Daniel Kurtz
2011-08-22 11:05 ` [PATCH 1/9 v5] Input: synaptics - refactor y inversion Daniel Kurtz
2011-08-22 11:05 ` [PATCH 2/9 v5] Input: synaptics - refactor agm packet parsing Daniel Kurtz
2011-08-22 11:05 ` [PATCH 3/9 v5] Input: synaptics - refactor initialization of abs position axes Daniel Kurtz
2011-08-22 11:05 ` [PATCH 4/9 v5] Input: synaptics - add image sensor support Daniel Kurtz
2011-08-22 20:55 ` Chase Douglas
2011-08-22 21:05 ` Dmitry Torokhov
2011-08-23 21:15 ` Henrik Rydberg
2011-09-09 14:14 ` Daniel Kurtz
[not found] ` <CAGS+omDuwL9pC6GJ_DzB02CBSQE2BwGW=p3xrTbY2hTd1S16uA@mail.gmail.com>
2011-09-09 16:15 ` Dmitry Torokhov
2011-08-22 11:05 ` [PATCH 5/9 v5] Input: synaptics - decode AGM packet types Daniel Kurtz
2011-08-22 11:06 ` [PATCH 6/9 v5] Input: mt - document devices reporting more touches than slots Daniel Kurtz
2011-08-22 11:06 ` [PATCH 7/9 v5] Input: synaptics - process finger (<=3) transitions Daniel Kurtz
2011-08-22 11:06 ` Daniel Kurtz [this message]
2011-08-22 11:06 ` [PATCH 9/9 v5] Input: synaptics - process finger (<=5) transitions Daniel Kurtz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1314011163-19098-9-git-send-email-djkurtz@chromium.org \
--to=djkurtz@chromium.org \
--cc=chase.douglas@canonical.com \
--cc=chris@cnpbagwell.com \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=olofj@chromium.org \
--cc=rydberg@euromail.se \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.