[Bf-blender-cvs] [64be503a042] wl_default: GHOST/wayland: define BTN event codes manually

Christian Rauch noreply at git.blender.org
Sat Jul 3 14:29:26 CEST 2021


Commit: 64be503a04281700db13a243b0bf60c86feb0e8b
Author: Christian Rauch
Date:   Sat Jul 3 00:14:04 2021 +0100
Branches: wl_default
https://developer.blender.org/rB64be503a04281700db13a243b0bf60c86feb0e8b

GHOST/wayland: define BTN event codes manually

===================================================================

M	intern/ghost/intern/GHOST_SystemWayland.cpp

===================================================================

diff --git a/intern/ghost/intern/GHOST_SystemWayland.cpp b/intern/ghost/intern/GHOST_SystemWayland.cpp
index f54a022f249..aa830b9a23e 100644
--- a/intern/ghost/intern/GHOST_SystemWayland.cpp
+++ b/intern/ghost/intern/GHOST_SystemWayland.cpp
@@ -47,12 +47,15 @@
 #include <xkbcommon/xkbcommon.h>
 
 #include <fcntl.h>
-#include <linux/input-event-codes.h>
 #include <sys/mman.h>
 #include <unistd.h>
 
 #include <cstring>
 
+#define BTN_LEFT    0x110
+#define BTN_RIGHT   0x111
+#define BTN_MIDDLE  0x112
+
 struct buffer_t {
   void *data;
   size_t size;



More information about the Bf-blender-cvs mailing list