diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2018-05-21 12:09:42 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2018-05-21 12:15:25 +1000 |
commit | 33162632cb51e32851100013536f8566a68e0667 (patch) | |
tree | c21f9d03adf8efcd991d9e0e1cff7aec84797c48 /tools/shared.c | |
parent | eae33ffcf0977d18df85ac09028497e010b5c939 (diff) | |
download | libinput-33162632cb51e32851100013536f8566a68e0667.tar.gz |
Revert "Expose a custom acceleration profile"
This looked good on paper but clearly no-one (including myself) ever tested this
in a real-life situation or they would've noticed that the constant factor is
missing, causing a segfault on the first two-finger scroll event, touchpad
gesture or button scrolling.
Adding the constant factor makes the API much worse and the benefit is
unclear, so out of the window it goes. We can revisit this for libinput 1.12
but this isn't going to make the next release.
This reverts commit d8bd650540e68e8b648e76180c5eee0f19a3b893.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'tools/shared.c')
-rw-r--r-- | tools/shared.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/tools/shared.c b/tools/shared.c index 85c0d739..c1ce6473 100644 --- a/tools/shared.c +++ b/tools/shared.c @@ -218,17 +218,6 @@ tools_parse_option(int option, "%s", optarg); break; - case OPT_CURVE_POINTS: - if (!optarg) - return 1; - - options->ncurve_points = kv_double_from_string( - optarg, - ";", ":", - &options->curve_points); - if (options->ncurve_points < 0) - return 1; - break; } return 0; @@ -397,16 +386,6 @@ tools_device_apply_config(struct libinput_device *device, libinput_device_config_send_events_set_mode(device, LIBINPUT_CONFIG_SEND_EVENTS_DISABLED); } - - if (libinput_device_config_accel_get_profile(device) == - LIBINPUT_CONFIG_ACCEL_PROFILE_DEVICE_SPEED_CURVE) { - for (ssize_t idx = 0; idx < options->ncurve_points; idx++) { - double x = options->curve_points[idx].key, - fx = options->curve_points[idx].value; - - libinput_device_config_accel_set_curve_point(device, x, fx); - } - } } static char* |