Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. +2 0  drivers/input/touchscreen/stmpe-ts.c
2  drivers/input/touchscreen/stmpe-ts.c
@@ -118,6 +118,7 @@ static void stmpe_work(struct work_struct *work)
118 118 __stmpe_reset_fifo(ts->stmpe);
119 119
120 120 input_report_abs(ts->idev, ABS_PRESSURE, 0);
  121 + input_report_key(ts->idev, BTN_TOUCH, 0);
121 122 input_sync(ts->idev);
122 123 }
123 124
@@ -155,6 +156,7 @@ static irqreturn_t stmpe_ts_handler(int irq, void *data)
155 156 input_report_abs(ts->idev, ABS_X, x);
156 157 input_report_abs(ts->idev, ABS_Y, y);
157 158 input_report_abs(ts->idev, ABS_PRESSURE, z);
  159 + input_report_key(ts->idev, BTN_TOUCH, 0);
158 160 input_sync(ts->idev);
159 161
160 162 /* flush the FIFO after we have read out our values. */

0 comments on commit da18d13

Please sign in to comment.
Something went wrong with that request. Please try again.