input_event(input, EV_ABS, ABS_MT_POSITION_Y, y1);
input_event(input, EV_ABS, ABS_MT_TOUCH_MAJOR, 1);
input_mt_sync(input);
+ input_event(input, EV_ABS, ABS_X, x1);
+ input_event(input, EV_ABS, ABS_Y, y1);
+ input_event(input, EV_KEY, BTN_TOUCH, 1);
input_sync(input);
old_state->x1 = x1;
old_state->y1 = y1;
* release to user space. */
input_event(input, EV_ABS, ABS_MT_TOUCH_MAJOR, 0);
input_mt_sync(input);
+ input_event(input, EV_KEY, BTN_TOUCH, 0);
input_sync(input);
old_state->state = data[0];
}
__set_bit(EV_ABS, input_dev->evbit);
__set_bit(EV_KEY, input_dev->evbit);
__set_bit(BTN_TOUCH, input_dev->keybit);
+ __set_bit(ABS_X, input_dev->absbit);
+ __set_bit(ABS_Y, input_dev->absbit);
input_set_abs_params(input_dev, ABS_MT_POSITION_X, 0, xmax, 0, 0);
input_set_abs_params(input_dev, ABS_MT_POSITION_Y, 0, ymax, 0, 0);