ft5x06: Set input property bit to indicate a direct input device
Prop bit is checked in userspace and must be set in driver in order to be recognized correctly, since it defaults to mouse pointer. Change-Id: Ibdc78547e6376e6db54db75b1423718d13afaaa7 Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
This commit is contained in:
committed by
Stephen Boyd
parent
fd9f5ad5f7
commit
cdafa428bc
@@ -445,6 +445,7 @@ static int ft5x06_ts_probe(struct i2c_client *client,
|
||||
__set_bit(EV_KEY, input_dev->evbit);
|
||||
__set_bit(EV_ABS, input_dev->evbit);
|
||||
__set_bit(BTN_TOUCH, input_dev->keybit);
|
||||
__set_bit(INPUT_PROP_DIRECT, input_dev->propbit);
|
||||
|
||||
input_set_abs_params(input_dev, ABS_MT_POSITION_X, 0,
|
||||
pdata->x_max, 0, 0);
|
||||
|
||||
Reference in New Issue
Block a user