Browse files

stmpe-ts: Fix mouse click

Previously, the mousebutton event was always mouseup, rather than
a mousedown when a touch was started, followed by a mouseup upon
release.  This patch makes the mousedown report a BTN_TOUCH.
  • Loading branch information...
1 parent d6eaa96 commit 39684c91059723f4d9a60ceaf1846e7ec5c52541 Sean Cross committed Jun 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 drivers/input/touchscreen/stmpe-ts.c
@@ -156,7 +156,7 @@ static irqreturn_t stmpe_ts_handler(int irq, void *data)
input_report_abs(ts->idev, ABS_X, x);
input_report_abs(ts->idev, ABS_Y, y);
input_report_abs(ts->idev, ABS_PRESSURE, z);
- input_report_key(ts->idev, BTN_TOUCH, 0);
+ input_report_key(ts->idev, BTN_TOUCH, 1);
/* flush the FIFO after we have read out our values. */

0 comments on commit 39684c9

Please sign in to comment.