mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-08 11:40:15 +01:00
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:
parent
8b1141acdc
commit
e55c54e2b9
2 changed files with 16 additions and 15 deletions
|
|
@ -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;
|
||||
|
|
|
|||
15
src/evdev.h
15
src/evdev.h
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue