summaryrefslogtreecommitdiff
path: root/bcm5974.c
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2008-10-23 10:47:37 +0200
committerHenrik Rydberg <rydberg@euromail.se>2008-10-23 10:53:46 +0200
commit8c13725ebac26ba2ed72dc33fc23671dc8bfb766 (patch)
tree6ccaa7a1e478c4af0ae6b52b8455e6fb44e8de21 /bcm5974.c
parent864761f08c765e7d38a3478d9ef9d7c6979cb887 (diff)
bcm5974-0.66-rc12
After fixing all the details regarding buttons, it seems I managed to leave out the part that actually reports them. :-) From tester logs, it seems the pressure scale is *not* changed much after all. The click-with-moving-finger strategy generally means pressing harder on the trackpad. Adjusted the range somewhat. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
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;