wayland: Add keyboard support

Adds libxkbcommon as a dependency when enabling the Wayland backend.
This commit is contained in:
Jonas Ådahl
2014-06-29 23:09:21 +02:00
parent 2f71bfc152
commit 9ac854b7bb
5 changed files with 297 additions and 8 deletions
+12
View File
@@ -29,6 +29,7 @@
#include <wayland-client.h>
#include <xkbcommon/xkbcommon.h>
#if defined(_GLFW_EGL)
#include "egl_context.h"
@@ -76,6 +77,17 @@ typedef struct _GLFWlibraryWayland
int monitorsCount;
int monitorsSize;
struct {
struct xkb_context* context;
struct xkb_keymap* keymap;
struct xkb_state* state;
xkb_mod_mask_t control_mask;
xkb_mod_mask_t alt_mask;
xkb_mod_mask_t shift_mask;
xkb_mod_mask_t super_mask;
unsigned int modifiers;
} xkb;
_GLFWwindow* pointerFocus;
_GLFWwindow* keyboardFocus;
} _GLFWlibraryWayland;