projects
/
platform
/
upstream
/
libinput.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
424a172
)
filter: fix x230 acceleration function for the ms→us change
author
Peter Hutterer
<peter.hutterer@who-t.net>
Fri, 31 Jul 2015 04:49:30 +0000
(14:49 +1000)
committer
Peter Hutterer
<peter.hutterer@who-t.net>
Fri, 31 Jul 2015 04:49:30 +0000
(14:49 +1000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Jonas Ådahl <jadahl@gmail.com>
src/filter.c
patch
|
blob
|
history
diff --git
a/src/filter.c
b/src/filter.c
index
f8f9409
..
54ae397
100644
(file)
--- a/
src/filter.c
+++ b/
src/filter.c
@@
-493,8
+493,8
@@
touchpad_lenovo_x230_accel_profile(struct motion_filter *filter,
speed_in *= TP_MAGIC_SLOWDOWN / TP_MAGIC_LOW_RES_FACTOR;
- s1 = min(1, speed_in * 5);
- s2 = 1 + (speed_in
- threshold
) * incline;
+ s1 = min(1, speed_in * 5
* 1000.0
);
+ s2 = 1 + (speed_in
* 1000.0 - threshold * 1000.0
) * incline;
speed_out = min(max_accel, s2 > 1 ? s2 : s1);