mirror of
https://github.com/glfw/glfw.git
synced 2026-09-21 08:39:45 +00:00
wayland: Add keyboard support
Adds libxkbcommon as a dependency when enabling the Wayland backend.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user