mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-04 05:50:26 +01:00
filter: move the velocity diff to the only function we use it in
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
b887353ab9
commit
e3554f38f8
1 changed files with 1 additions and 1 deletions
|
|
@ -101,7 +101,6 @@ filter_get_type(struct motion_filter *filter)
|
|||
* Pointer acceleration filter constants
|
||||
*/
|
||||
|
||||
#define MAX_VELOCITY_DIFF v_ms2us(1) /* units/us */
|
||||
#define MOTION_TIMEOUT ms2us(1000)
|
||||
#define NUM_POINTER_TRACKERS 16
|
||||
|
||||
|
|
@ -227,6 +226,7 @@ calculate_velocity_after_timeout(struct pointer_tracker *tracker,
|
|||
double
|
||||
calculate_velocity(struct pointer_trackers *trackers, uint64_t time)
|
||||
{
|
||||
const int MAX_VELOCITY_DIFF = v_ms2us(1); /* units/us */
|
||||
struct pointer_tracker *tracker;
|
||||
double velocity;
|
||||
double result = 0.0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue