Home
last modified time | relevance | path

Searched refs:speed_in (Results 1 – 5 of 5) sorted by relevance

/third_party/libinput/src/
Dfilter-touchpad.c231 double speed_in, /* in device units/µs */ in touchpad_accel_profile_linear() argument
241 speed_in = v_us2s(speed_in) * 25.4/accel_filter->dpi; in touchpad_accel_profile_linear()
288 if (speed_in < 7.0) { in touchpad_accel_profile_linear()
289 factor = min(baseline, 0.1 * speed_in + 0.3); in touchpad_accel_profile_linear()
291 } else if (speed_in < threshold) { in touchpad_accel_profile_linear()
307 speed_in = min(speed_in, upper_threshold); in touchpad_accel_profile_linear()
309 factor = 0.0025 * (speed_in/threshold) * (speed_in - threshold) + baseline; in touchpad_accel_profile_linear()
Dfilter-mouse.c228 double speed_in, /* in device units (units/µs) */ in pointer_accel_profile_linear() argument
239 speed_in = speed_in * DEFAULT_MOUSE_DPI/accel_filter->dpi; in pointer_accel_profile_linear()
275 if (v_us2ms(speed_in) < 0.07) { in pointer_accel_profile_linear()
276 factor = 10 * v_us2ms(speed_in) + 0.3; in pointer_accel_profile_linear()
278 } else if (speed_in < threshold) { in pointer_accel_profile_linear()
292 factor = incline * v_us2ms(speed_in - threshold) + 1; in pointer_accel_profile_linear()
Dfilter.h141 double speed_in,
146 double speed_in,
151 double speed_in,
156 double speed_in,
Dfilter-low-dpi.c76 double speed_in, /* in device units (units/us) */ in pointer_accel_profile_linear_low_dpi() argument
94 if (v_us2ms(speed_in) < 0.07) in pointer_accel_profile_linear_low_dpi()
95 factor = 10 * v_us2ms(speed_in) + 0.3; in pointer_accel_profile_linear_low_dpi()
96 else if (speed_in < threshold) in pointer_accel_profile_linear_low_dpi()
99 factor = incline * v_us2ms(speed_in - threshold) + 1; in pointer_accel_profile_linear_low_dpi()
Dfilter-touchpad-x230.c250 double speed_in, /* 1000dpi-units/µs */ in touchpad_lenovo_x230_accel_profile() argument
276 speed_in *= X230_MAGIC_SLOWDOWN / X230_TP_MAGIC_LOW_RES_FACTOR; in touchpad_lenovo_x230_accel_profile()
278 f1 = min(1, v_us2ms(speed_in) * 5); in touchpad_lenovo_x230_accel_profile()
279 f2 = 1 + (v_us2ms(speed_in) - v_us2ms(threshold)) * incline; in touchpad_lenovo_x230_accel_profile()