Add support for receiving control characters

This commit is contained in:
nthung-2k5 2023-07-24 09:01:12 +07:00 committed by GitHub
parent 3eaf1255b2
commit 0b0a45e077
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -314,7 +314,7 @@ void _glfwInputChar(_GLFWwindow* window, uint32_t codepoint, int mods, GLFWbool
assert(mods == (mods & GLFW_MOD_MASK)); assert(mods == (mods & GLFW_MOD_MASK));
assert(plain == GLFW_TRUE || plain == GLFW_FALSE); assert(plain == GLFW_TRUE || plain == GLFW_FALSE);
if (codepoint < 32 || (codepoint > 126 && codepoint < 160)) if (codepoint > 126 && codepoint < 160)
return; return;
if (!window->lockKeyMods) if (!window->lockKeyMods)