diff options
author | Christian Rauch <Rauch.Christian@gmx.de> | 2021-07-03 02:14:04 +0300 |
---|---|---|
committer | Christian Rauch <Rauch.Christian@gmx.de> | 2021-07-06 20:17:21 +0300 |
commit | a069fffcc49bb7b23ff4c37816aff1420a13c63d (patch) | |
tree | 1ba7c1f59ff9fd64672a3094c8bdea06bcb0f46e /intern | |
parent | 9182c882fe2af9e4b67a8b7d94c56cbd89e0c386 (diff) |
GHOST/wayland: define BTN event codes manually
Diffstat (limited to 'intern')
-rw-r--r-- | intern/ghost/intern/GHOST_SystemWayland.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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; |