diff options
author | Marcel Hollerbach <mail@marcel-hollerbach.de> | 2021-03-24 16:07:27 +0100 |
---|---|---|
committer | Marcel Hollerbach <mail@marcel-hollerbach.de> | 2021-03-24 20:58:13 +0100 |
commit | 202bae05ec3af12a3979e21fe967cb4a4c66f587 (patch) | |
tree | e2af87bf21e09c5cdd23e4d2a1786359bd5c3fe4 /src/lib/elput/elput_private.h | |
parent | 49ac4121cf8fe52316faf2829d348c51d7ac7a5e (diff) | |
download | efl-devs/bu5hm4n/elput_with_swipe.tar.gz |
WIP: elput: introduce gesture passingdevs/bu5hm4n/elput_with_swipe
In order to have that working on Xorg, this requires the libinput group
hack if you are not session leader.
for now only swipe bindings.
Diffstat (limited to 'src/lib/elput/elput_private.h')
-rw-r--r-- | src/lib/elput/elput_private.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/elput/elput_private.h b/src/lib/elput/elput_private.h index fd7d843d2e..a73eb7e7eb 100644 --- a/src/lib/elput/elput_private.h +++ b/src/lib/elput/elput_private.h @@ -246,6 +246,16 @@ struct _Elput_Device Eina_Bool invert_y : 1; }; +typedef struct { + Elput_Swipe_Gesture_Callback cb; + void *data; +} Elput_Gesture_Swipe_Callback; + +struct _Elput_Swipe_Gesture { + double dx, dy; + int finger_count; +}; + struct _Elput_Manager { Elput_Interface *interface; @@ -257,6 +267,9 @@ struct _Elput_Manager int vt_fd; Ecore_Event_Handler *vt_hdlr; uint32_t window; + struct { + Elput_Gesture_Swipe_Callback begin, update, end; + } swipe_callback; int pending_ptr_x; int pending_ptr_y; @@ -282,6 +295,7 @@ struct _Elput_Manager Elput_Input input; Eina_Bool del : 1; + Eina_Bool only_gesture_events : 1; }; typedef struct _Elput_Async_Open @@ -295,6 +309,7 @@ void _elput_input_enable(Elput_Manager *manager); void _elput_input_disable(Elput_Manager *manager); int _evdev_event_process(struct libinput_event *event); +int _gesture_event_process(struct libinput_event *event); Elput_Device *_evdev_device_create(Elput_Seat *seat, struct libinput_device *device); void _evdev_device_destroy(Elput_Device *edev); void _evdev_keyboard_destroy(Elput_Keyboard *kbd); @@ -308,6 +323,7 @@ Elput_Keyboard *_evdev_keyboard_get(Elput_Seat *seat); Elput_Touch *_evdev_touch_get(Elput_Seat *seat); extern Elput_Interface _logind_interface; +extern Elput_Interface _root_interface; void _keyboard_keymap_update(Elput_Seat *seat); void _keyboard_group_update(Elput_Seat *seat); |