diff --git a/src/editor/Renderer.cpp b/src/editor/Renderer.cpp index 9ff5c725..d3811696 100644 --- a/src/editor/Renderer.cpp +++ b/src/editor/Renderer.cpp @@ -40,7 +40,7 @@ void key_callback(GLFWwindow* window, int key, int scancode, int action, int mod } g_app->oldPressed[key] = g_app->pressed[key]; - g_app->pressed[key] = action == GLFW_PRESS; + g_app->pressed[key] = action != GLFW_RELEASE; } void drop_callback(GLFWwindow* window, int count, const char** paths)