|
@@ -258,6 +258,7 @@ static void setup_events_to_report(struct input_dev *input_dev,
|
|
|
__set_bit(BTN_TOOL_FINGER, input_dev->keybit);
|
|
|
__set_bit(BTN_TOOL_DOUBLETAP, input_dev->keybit);
|
|
|
__set_bit(BTN_TOOL_TRIPLETAP, input_dev->keybit);
|
|
|
+ __set_bit(BTN_TOOL_QUADTAP, input_dev->keybit);
|
|
|
__set_bit(BTN_LEFT, input_dev->keybit);
|
|
|
}
|
|
|
|
|
@@ -329,7 +330,8 @@ static int report_tp_state(struct bcm5974 *dev, int size)
|
|
|
input_report_key(input, BTN_TOUCH, dev->fingers > 0);
|
|
|
input_report_key(input, BTN_TOOL_FINGER, dev->fingers == 1);
|
|
|
input_report_key(input, BTN_TOOL_DOUBLETAP, dev->fingers == 2);
|
|
|
- input_report_key(input, BTN_TOOL_TRIPLETAP, dev->fingers > 2);
|
|
|
+ input_report_key(input, BTN_TOOL_TRIPLETAP, dev->fingers == 3);
|
|
|
+ input_report_key(input, BTN_TOOL_QUADTAP, dev->fingers > 3);
|
|
|
|
|
|
input_report_abs(input, ABS_PRESSURE, abs_p);
|
|
|
input_report_abs(input, ABS_TOOL_WIDTH, abs_w);
|