[Bf-blender-cvs] [a069fffcc49] master: GHOST/wayland: define BTN event codes manually
Christian Rauch
noreply at git.blender.org
Tue Jul 6 19:28:32 CEST 2021
Commit: a069fffcc49bb7b23ff4c37816aff1420a13c63d
Author: Christian Rauch
Date: Sat Jul 3 00:14:04 2021 +0100
Branches: master
https://developer.blender.org/rBa069fffcc49bb7b23ff4c37816aff1420a13c63d
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 aaf7c6f5f12..72c7c525114 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