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;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to