diff options
| author | Henrik Rydberg <rydberg@euromail.se> | 2008-10-23 10:47:37 +0200 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2008-10-23 10:47:37 +0200 |
| commit | 869d13c5176813f6f076cad1c0fae29e3603d805 (patch) | |
| tree | 6ccaa7a1e478c4af0ae6b52b8455e6fb44e8de21 | |
| parent | fca7f164708033819b48b765d9b80e1b47a3ed2a (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>
| -rw-r--r-- | bcm5974.c | 7 |
1 files changed, 6 insertions, 1 deletions
| @@ -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; |
