Permalink
Browse files

stmpe-ts: Patch to provide mouse button clicks

The touchscreen provides ABS_PRESSURE values, but didn't provide
BTN values.  This patch adds in the BTN reporting.
  • Loading branch information...
1 parent f9f85c6 commit da18d1308bbe644f5ffc082ea00b7ec7d7fa4bc5 Sean Cross committed Jun 20, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 drivers/input/touchscreen/stmpe-ts.c
View
2 drivers/input/touchscreen/stmpe-ts.c
@@ -118,6 +118,7 @@ static void stmpe_work(struct work_struct *work)
__stmpe_reset_fifo(ts->stmpe);
input_report_abs(ts->idev, ABS_PRESSURE, 0);
+ input_report_key(ts->idev, BTN_TOUCH, 0);
input_sync(ts->idev);
}
@@ -155,6 +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_sync(ts->idev);
/* flush the FIFO after we have read out our values. */

0 comments on commit da18d13

Please sign in to comment.