Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit da18d1308bbe644f5ffc082ea00b7ec7d7fa4bc5 1 parent f9f85c6
Sean Cross authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  drivers/input/touchscreen/stmpe-ts.c
2  drivers/input/touchscreen/stmpe-ts.c
View
@@ -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. */
Please sign in to comment.
Something went wrong with that request. Please try again.