forked from rubenslte/android_kernel_samsung_msm8226
atmel_maxtouch: 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: I8432716573a365c11b6837d1ce756364d2b98946 Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
This commit is contained in:
@@ -2034,6 +2034,7 @@ static int __devinit mxt_probe(struct i2c_client *client,
|
||||
mxt_debug(DEBUG_INFO, "maXTouch driver setting abs parameters\n");
|
||||
|
||||
set_bit(BTN_TOUCH, input->keybit);
|
||||
set_bit(INPUT_PROP_DIRECT, input->propbit);
|
||||
|
||||
/* Single touch */
|
||||
input_set_abs_params(input, ABS_X, mxt->min_x_val,
|
||||
|
||||
Reference in New Issue
Block a user