]> git.mdlowis.com Git - proto/labwc.git/commitdiff
Fix build errors
authorARDiDo <90479315+ARDiDo@users.noreply.github.com>
Fri, 15 Oct 2021 16:27:52 +0000 (12:27 -0400)
committerJohan Malm <johanmalm@users.noreply.github.com>
Fri, 15 Oct 2021 18:11:35 +0000 (19:11 +0100)
include/config/libinput.h [new file with mode: 0644]

diff --git a/include/config/libinput.h b/include/config/libinput.h
new file mode 100644 (file)
index 0000000..e46610c
--- /dev/null
@@ -0,0 +1,30 @@
+#ifndef __LABWC_LIBINPUT_H
+#define __LABWC_LIBINPUT_H
+
+#include <libinput.h>
+#include <string.h>
+#include <wayland-server-core.h>
+
+enum device_type {
+       DEFAULT_DEVICE,
+       TOUCH_DEVICE,
+       NON_TOUCH_DEVICE,
+};
+
+struct libinput_category {
+       enum device_type type;
+       char *name;
+       struct wl_list link;
+       float pointer_speed;
+       int natural_scroll;
+       int left_handed;
+       enum libinput_config_tap_state tap;
+       enum libinput_config_accel_profile accel_profile;
+       enum libinput_config_middle_emulation_state middle_emu;
+       enum libinput_config_dwt_state dwt;
+};
+
+enum device_type get_device_type(const char *s);
+struct libinput_category *libinput_category_create();
+
+#endif /* __LABWC_LIBINPUT_H */