mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-27 04:28:52 -05:00
Formatting.
This commit is contained in:
parent
0c58df06d5
commit
2889f484f4
|
@ -89,10 +89,10 @@ static int translateState(int state)
|
||||||
static int translateKey(int keycode)
|
static int translateKey(int keycode)
|
||||||
{
|
{
|
||||||
// Use the pre-filled LUT (see updateKeyCodeLUT() in x11_init.c)
|
// Use the pre-filled LUT (see updateKeyCodeLUT() in x11_init.c)
|
||||||
if ((keycode >= 0) && (keycode < 256))
|
if (keycode < 0 || keycode > 255)
|
||||||
return _glfw.x11.keyCodeLUT[keycode];
|
|
||||||
|
|
||||||
return GLFW_KEY_UNKNOWN;
|
return GLFW_KEY_UNKNOWN;
|
||||||
|
|
||||||
|
return _glfw.x11.keyCodeLUT[keycode];
|
||||||
}
|
}
|
||||||
|
|
||||||
// Translates an X Window event to Unicode
|
// Translates an X Window event to Unicode
|
||||||
|
|
Loading…
Reference in New Issue
Block a user