mirror of
https://github.com/glfw/glfw.git
synced 2026-09-22 08:50:15 +00:00
Renamed control modifier bit to match key token.
This commit is contained in:
+2
-2
@@ -67,7 +67,7 @@ int translateState(int state)
|
||||
if (state & ShiftMask)
|
||||
mods |= GLFW_MOD_SHIFT;
|
||||
if (state & ControlMask)
|
||||
mods |= GLFW_MOD_CTRL;
|
||||
mods |= GLFW_MOD_CONTROL;
|
||||
if (state & Mod1Mask)
|
||||
mods |= GLFW_MOD_ALT;
|
||||
|
||||
@@ -532,7 +532,7 @@ static void processEvent(XEvent *event)
|
||||
|
||||
_glfwInputKey(window, key, GLFW_PRESS, mods);
|
||||
|
||||
if (!(mods & GLFW_MOD_CTRL) && !(mods & GLFW_MOD_ALT))
|
||||
if (!(mods & GLFW_MOD_CONTROL) && !(mods & GLFW_MOD_ALT))
|
||||
_glfwInputChar(window, translateChar(&event->xkey));
|
||||
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user