summaryrefslogtreecommitdiff
path: root/bcm5974.c
diff options
context:
space:
mode:
Diffstat (limited to 'bcm5974.c')
-rw-r--r--bcm5974.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/bcm5974.c b/bcm5974.c
index 9965e8f..e858f0b 100644
--- a/bcm5974.c
+++ b/bcm5974.c
@@ -226,7 +226,7 @@ static const struct bcm5974_config bcm5974_config_table[] = {
226 USB_DEVICE_ID_APPLE_WELLSPRING3_JIS, 226 USB_DEVICE_ID_APPLE_WELLSPRING3_JIS,
227 0x84, sizeof(struct bt_data), 227 0x84, sizeof(struct bt_data),
228 0x81, TYPE2, FINGER_TYPE2, FINGER_TYPE2 + SIZEOF_ALL_FINGERS, 228 0x81, TYPE2, FINGER_TYPE2, FINGER_TYPE2 + SIZEOF_ALL_FINGERS,
229 { DIM_PRESSURE, DIM_PRESSURE / SN_PRESSURE, 0, 768 }, 229 { DIM_PRESSURE, DIM_PRESSURE / SN_PRESSURE, 0, 300 },
230 { DIM_WIDTH, DIM_WIDTH / SN_WIDTH, 0, 2048 }, 230 { DIM_WIDTH, DIM_WIDTH / SN_WIDTH, 0, 2048 },
231 { DIM_X, DIM_X / SN_COORD, -4460, 5166 }, 231 { DIM_X, DIM_X / SN_COORD, -4460, 5166 },
232 { DIM_Y, DIM_Y / SN_COORD, -75, 6700 } 232 { DIM_Y, DIM_Y / SN_COORD, -75, 6700 }
@@ -387,6 +387,11 @@ static int report_tp_state(struct bcm5974 *dev, int size)
387 387
388 } 388 }
389 389
390 if (HAS_INTEGRATED_BUTTON(c)) {
391 input_report_key(input, BTN_TOOL_PRESS, ibt);
392 input_report_key(input, BTN_LEFT, ibt);
393 }
394
390 input_sync(input); 395 input_sync(input);
391 396
392 return 0; 397 return 0;