Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
return center + diff + margin;
}
-static inline struct tp_motion *
+static inline struct device_coords *
tp_motion_history_offset(struct tp_touch *t, int offset)
{
int offset_index =
EDGE_SCROLL_TOUCH_STATE_AREA,
};
-struct tp_motion {
- int32_t x;
- int32_t y;
-};
-
struct tp_touch {
struct tp_dispatch *tp;
enum touch_state state;
uint64_t millis;
struct {
- struct tp_motion samples[TOUCHPAD_HISTORY_LENGTH];
+ struct device_coords samples[TOUCHPAD_HISTORY_LENGTH];
unsigned int index;
unsigned int count;
} history;