diff --git a/src/input.c b/src/input.c index f44ea575..f35b606c 100644 --- a/src/input.c +++ b/src/input.c @@ -90,7 +90,6 @@ void _glfwInputMouseClick(_GLFWwindow* window, int button, int action, int mods) if (button < 0 || button > GLFW_MOUSE_BUTTON_LAST) return; - // Register mouse button action if (action == GLFW_RELEASE && window->stickyMouseButtons) window->mouseButtons[button] = _GLFW_STICK; else diff --git a/src/window.c b/src/window.c index f6d71b68..fbcc0884 100644 --- a/src/window.c +++ b/src/window.c @@ -52,14 +52,12 @@ void _glfwInputWindowFocus(_GLFWwindow* window, GLFWbool focused) if (window->callbacks.focus) window->callbacks.focus((GLFWwindow*) window, focused); - // Release all pressed keyboard keys for (i = 0; i <= GLFW_KEY_LAST; i++) { if (window->keys[i] == GLFW_PRESS) _glfwInputKey(window, i, 0, GLFW_RELEASE, 0); } - // Release all pressed mouse buttons for (i = 0; i <= GLFW_MOUSE_BUTTON_LAST; i++) { if (window->mouseButtons[i] == GLFW_PRESS)