fallback: move the mt slot state struct/enum here

Not needed by the more generic evdev header

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2018-07-13 15:22:23 +10:00
parent 8b1141acdc
commit e55c54e2b9
2 changed files with 16 additions and 15 deletions

View file

@ -45,6 +45,22 @@ enum debounce_state {
DEBOUNCE_STATE_DISABLED = 999,
};
enum mt_slot_state {
SLOT_STATE_NONE,
SLOT_STATE_BEGIN,
SLOT_STATE_UPDATE,
SLOT_STATE_END,
};
struct mt_slot {
bool dirty;
enum mt_slot_state state;
int32_t seat_slot;
struct device_coords point;
struct device_coords hysteresis_center;
bool is_palm;
};
struct fallback_dispatch {
struct evdev_dispatch base;
struct evdev_device *device;

View file

@ -157,21 +157,6 @@ enum evdev_debounce_state {
DEBOUNCE_ACTIVE,
};
enum mt_slot_state {
SLOT_STATE_NONE,
SLOT_STATE_BEGIN,
SLOT_STATE_UPDATE,
SLOT_STATE_END,
};
struct mt_slot {
bool dirty;
enum mt_slot_state state;
int32_t seat_slot;
struct device_coords point;
struct device_coords hysteresis_center;
};
struct evdev_device {
struct libinput_device base;