Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorChristian Rauch <Rauch.Christian@gmx.de>2021-07-07 15:21:57 +0300
committerChristian Rauch <Rauch.Christian@gmx.de>2021-07-07 15:21:57 +0300
commitecbf838feefc9b064b71297b74613e7b094ee8d7 (patch)
treed4347764d467015154e523ecd6e661b582f7db0a /intern
parent0153e99780aef64913dfd4c323984874bf688249 (diff)
Cleanup: comment on source of button event codes
Diffstat (limited to 'intern')
-rw-r--r--intern/ghost/intern/GHOST_SystemWayland.cpp7
1 files changed, 7 insertions, 0 deletions
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