From 2a3c62b4d28ec7a69473e9c18c42f1ed26c74bbf Mon Sep 17 00:00:00 2001 From: Ryan Walklin Date: Wed, 14 Nov 2018 23:24:55 +0000 Subject: [WIP][DONTMERGE]Add support for libinput_switch input devices These are used primarily by laptops to signal the state of the lid (open/closed) and tablet mode if supported, based on ACPI events. --- include/backend/libinput.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/backend') diff --git a/include/backend/libinput.h b/include/backend/libinput.h index 9531091f..f4886956 100644 --- a/include/backend/libinput.h +++ b/include/backend/libinput.h @@ -55,6 +55,11 @@ void handle_pointer_button(struct libinput_event *event, void handle_pointer_axis(struct libinput_event *event, struct libinput_device *device); +struct wlr_switch *create_libinput_switch( + struct libinput_device *device); +void handle_switch_toggle(struct libinput_event *event, + struct libinput_device *device); + struct wlr_touch *create_libinput_touch( struct libinput_device *device); void handle_touch_down(struct libinput_event *event, -- cgit v1.2.3