[PATCH libinput 10/23] filter: move the pointer_accelerator struct into the header
Peter Hutterer
peter.hutterer at who-t.net
Thu Apr 12 06:34:36 UTC 2018
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
src/filter-private.h | 17 +++++++++++++++++
src/filter.c | 17 -----------------
2 files changed, 17 insertions(+), 17 deletions(-)
diff --git a/src/filter-private.h b/src/filter-private.h
index 10be823b..4779e8f2 100644
--- a/src/filter-private.h
+++ b/src/filter-private.h
@@ -71,6 +71,23 @@ struct pointer_trackers {
struct pointer_delta_smoothener *smoothener;
};
+struct pointer_accelerator {
+ struct motion_filter base;
+
+ accel_profile_func_t profile;
+
+ double velocity; /* units/us */
+ double last_velocity; /* units/us */
+
+ struct pointer_trackers trackers;
+
+ double threshold; /* units/us */
+ double accel; /* unitless factor */
+ double incline; /* incline of the function */
+
+ int dpi;
+};
+
void init_trackers(struct pointer_trackers *trackers,
size_t ntrackers);
void free_trackers(struct pointer_trackers *trackers);
diff --git a/src/filter.c b/src/filter.c
index ff3f7dd1..5a593e17 100644
--- a/src/filter.c
+++ b/src/filter.c
@@ -117,23 +117,6 @@ filter_get_type(struct motion_filter *filter)
#define MOTION_TIMEOUT ms2us(1000)
#define NUM_POINTER_TRACKERS 16
-struct pointer_accelerator {
- struct motion_filter base;
-
- accel_profile_func_t profile;
-
- double velocity; /* units/us */
- double last_velocity; /* units/us */
-
- struct pointer_trackers trackers;
-
- double threshold; /* units/us */
- double accel; /* unitless factor */
- double incline; /* incline of the function */
-
- int dpi;
-};
-
struct pointer_accelerator_flat {
struct motion_filter base;
--
2.14.3
More information about the wayland-devel
mailing list