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. --- rootston/input.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'rootston/input.c') diff --git a/rootston/input.c b/rootston/input.c index 7b4001b3..a863b919 100644 --- a/rootston/input.c +++ b/rootston/input.c @@ -23,6 +23,8 @@ static const char *device_type(enum wlr_input_device_type type) { return "keyboard"; case WLR_INPUT_DEVICE_POINTER: return "pointer"; + case WLR_INPUT_DEVICE_SWITCH: + return "switch"; case WLR_INPUT_DEVICE_TOUCH: return "touch"; case WLR_INPUT_DEVICE_TABLET_TOOL: -- cgit v1.2.3