diff options
author | Rafi Rubin <rafi@seas.upenn.edu> | 2010-04-09 17:58:25 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2010-04-13 15:22:59 +0200 |
commit | 2170c5a8ae4b952e517e7b0565528914ddc11320 (patch) | |
tree | cba6020752642b9a068249c348a8e42ffaf359e4 /drivers/hid/hid-ntrig.c | |
parent | 1ce31b255cf8b06470dfbd469055b6fd8d2274bc (diff) | |
download | blackbird-op-linux-2170c5a8ae4b952e517e7b0565528914ddc11320.tar.gz blackbird-op-linux-2170c5a8ae4b952e517e7b0565528914ddc11320.zip |
HID: ntrig: Emit TOUCH with DOUBLETAP for single touch
I squelched TipSwitch in a recent patch which resulted in the loss
of Touch events for single touch firmwares. This patch just puts Touch back
in for single touch, and bundles it with DoubleTap (like the multitouch code).
The two events are used to convey the same message to different drivers.
Signed-off-by: Rafi Rubin <rafi@seas.upenn.edu>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-ntrig.c')
-rw-r--r-- | drivers/hid/hid-ntrig.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/hid/hid-ntrig.c b/drivers/hid/hid-ntrig.c index a418f9e19ce7..58ba0d3d8aa5 100644 --- a/drivers/hid/hid-ntrig.c +++ b/drivers/hid/hid-ntrig.c @@ -173,6 +173,8 @@ static int ntrig_event (struct hid_device *hid, struct hid_field *field, if (!nd->reading_mt) { input_report_key(input, BTN_TOOL_DOUBLETAP, (nd->confidence != 0)); + input_report_key(input, BTN_TOUCH, + (nd->confidence != 0)); input_event(input, EV_ABS, ABS_X, nd->x); input_event(input, EV_ABS, ABS_Y, nd->y); } |