mirror of
https://github.com/glfw/glfw.git
synced 2024-11-26 20:11:58 +00:00
wayland: Follow _glfwInputChar() type change
This commit is contained in:
parent
896d040c68
commit
2230a68e42
@ -385,7 +385,7 @@ static void keyboardHandleKey(void* data,
|
|||||||
uint32_t state)
|
uint32_t state)
|
||||||
{
|
{
|
||||||
uint32_t code, num_syms;
|
uint32_t code, num_syms;
|
||||||
long sym;
|
long cp;
|
||||||
int keyCode;
|
int keyCode;
|
||||||
int action;
|
int action;
|
||||||
const xkb_keysym_t *syms;
|
const xkb_keysym_t *syms;
|
||||||
@ -403,9 +403,13 @@ static void keyboardHandleKey(void* data,
|
|||||||
|
|
||||||
if (num_syms == 1)
|
if (num_syms == 1)
|
||||||
{
|
{
|
||||||
sym = _glfwKeySym2Unicode(syms[0]);
|
cp = _glfwKeySym2Unicode(syms[0]);
|
||||||
if (sym != -1)
|
if (cp != -1)
|
||||||
_glfwInputChar(window, sym);
|
{
|
||||||
|
const int mods = _glfw.wl.xkb.modifiers;
|
||||||
|
const int plain = !(mods & (GLFW_MOD_CONTROL | GLFW_MOD_ALT));
|
||||||
|
_glfwInputChar(window, cp, mods, plain);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user