From d71e6498a825a162e65cc5d93decb20d2c69aa03 Mon Sep 17 00:00:00 2001 From: Unreal Karaulov Date: Wed, 6 Dec 2023 18:43:58 +0300 Subject: [PATCH] Revert one of bad changes --- src/editor/Renderer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)