aboutsummaryrefslogtreecommitdiff
path: root/include/backend
diff options
context:
space:
mode:
authorRyan Walklin <ryan@testtoast.com>2018-11-14 23:24:55 +0000
committerRyan Walklin <ryan@crackotage.local>2018-12-15 14:42:35 +1100
commit2a3c62b4d28ec7a69473e9c18c42f1ed26c74bbf (patch)
tree6284dc156f6edee6f22e8e5c97430da5f464c27c /include/backend
parent8a56b96c5516ee089b7561949aac4f83e5b94808 (diff)
[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.
Diffstat (limited to 'include/backend')
-rw-r--r--include/backend/libinput.h5
1 files changed, 5 insertions, 0 deletions
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,