[Bf-blender-cvs] [ecbf838feef] master: Cleanup: comment on source of button event codes
Christian Rauch
noreply at git.blender.org
Wed Jul 7 14:22:26 CEST 2021
Commit: ecbf838feefc9b064b71297b74613e7b094ee8d7
Author: Christian Rauch
Date: Wed Jul 7 13:21:57 2021 +0100
Branches: master
https://developer.blender.org/rBecbf838feefc9b064b71297b74613e7b094ee8d7
Cleanup: comment on source of button event codes
===================================================================
M intern/ghost/intern/GHOST_SystemWayland.cpp
===================================================================
diff --git a/intern/ghost/intern/GHOST_SystemWayland.cpp b/intern/ghost/intern/GHOST_SystemWayland.cpp
index 72c7c525114..77928b6edb5 100644
--- a/intern/ghost/intern/GHOST_SystemWayland.cpp
+++ b/intern/ghost/intern/GHOST_SystemWayland.cpp
@@ -52,6 +52,13 @@
#include <cstring>
+#include <linux/input-event-codes.h>
+
+/* selected input event code defines from 'linux/input-event-codes.h'
+ * We include some of the button input event codes here, since the header is
+ * only available in more recent kernel versions. The event codes are used to
+ * to differentiate from which mouse button an event comes from.
+ */
#define BTN_LEFT 0x110
#define BTN_RIGHT 0x111
#define BTN_MIDDLE 0x112
More information about the Bf-blender-cvs
mailing list