diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2018-07-09 16:04:50 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2018-07-11 16:04:59 +1000 |
commit | 27f7a66de4e705b2cd00d2d8ba499c9a5829fee0 (patch) | |
tree | 7b569f2e2a82cd35093e64bceaf1943abf40e858 /tools | |
parent | 1cc9f44e93ca1c3e25a6f937f36d99c3f9c8a209 (diff) |
filter: add a trackpoint multiplier factor
Measuring the trackpoint range has not shown to be sufficient or precise
enough to be used as an ingredient for trackpoint acceleration. So let's just
switch back to a generic multiplier that we can apply to the input deltas do
undo any device-specific lack of scaling.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/shared.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/shared.c b/tools/shared.c index fa03cc75..92c362b8 100644 --- a/tools/shared.c +++ b/tools/shared.c @@ -616,6 +616,7 @@ tools_list_device_quirks(struct quirks_context *ctx, QUIRK_ATTR_PALM_PRESSURE_THRESHOLD, QUIRK_ATTR_RESOLUTION_HINT, QUIRK_ATTR_TRACKPOINT_RANGE, + QUIRK_ATTR_TRACKPOINT_MULTIPLIER, QUIRK_ATTR_THUMB_PRESSURE_THRESHOLD, }; enum quirk *q; @@ -696,6 +697,11 @@ tools_list_device_quirks(struct quirks_context *ctx, snprintf(buf, sizeof(buf), "%s=%s", name, s); callback(userdata, buf); break; + case QUIRK_ATTR_TRACKPOINT_MULTIPLIER: + quirks_get_double(quirks, *q, &d); + snprintf(buf, sizeof(buf), "%s=%0.2f\n", name, d); + callback(userdata, buf); + break; } } |