summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2023-06-08 13:38:13 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2023-06-08 14:14:37 +1000
commit141aa867a6c4b0f4fc3b9a89a12080e01a59d7c9 (patch)
tree788261fe3b3a60b03aaaef6a266db73086cc072e
parent57b049d37668a8e9c69e552d5dc0cd3bbab9bb2a (diff)
Change the capabilities to an enum
Slightly nicer for debugging.
-rw-r--r--src/xf86libinput.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/xf86libinput.c b/src/xf86libinput.c
index 642f95f..eb1c609 100644
--- a/src/xf86libinput.c
+++ b/src/xf86libinput.c
@@ -80,13 +80,15 @@
#define TABLET_STRIP_AXIS_MAX 4096
#define TABLET_RING_AXIS_MAX 71
-#define CAP_KEYBOARD 0x1
-#define CAP_POINTER 0x2
-#define CAP_TOUCH 0x4
-#define CAP_TABLET 0x8
-#define CAP_TABLET_TOOL 0x10
-#define CAP_TABLET_PAD 0x20
-#define CAP_GESTURE 0x40
+enum capabilities {
+ CAP_KEYBOARD = 0x1,
+ CAP_POINTER = 0x2,
+ CAP_TOUCH = 0x4,
+ CAP_TABLET = 0x8,
+ CAP_TABLET_TOOL = 0x10,
+ CAP_TABLET_PAD = 0x20,
+ CAP_GESTURE = 0x40,
+};
#if HAVE_INPUTPROTO24
#if ABI_XINPUT_VERSION >= SET_ABI_VERSION(24, 4)