Remove superfluous comments

This commit is contained in:
Camilla Löwy 2017-01-29 16:11:04 +01:00
parent 2037b5ce39
commit 9689f7b925
2 changed files with 0 additions and 3 deletions

View File

@ -90,7 +90,6 @@ void _glfwInputMouseClick(_GLFWwindow* window, int button, int action, int mods)
if (button < 0 || button > GLFW_MOUSE_BUTTON_LAST) if (button < 0 || button > GLFW_MOUSE_BUTTON_LAST)
return; return;
// Register mouse button action
if (action == GLFW_RELEASE && window->stickyMouseButtons) if (action == GLFW_RELEASE && window->stickyMouseButtons)
window->mouseButtons[button] = _GLFW_STICK; window->mouseButtons[button] = _GLFW_STICK;
else else

View File

@ -52,14 +52,12 @@ void _glfwInputWindowFocus(_GLFWwindow* window, GLFWbool focused)
if (window->callbacks.focus) if (window->callbacks.focus)
window->callbacks.focus((GLFWwindow*) window, focused); window->callbacks.focus((GLFWwindow*) window, focused);
// Release all pressed keyboard keys
for (i = 0; i <= GLFW_KEY_LAST; i++) for (i = 0; i <= GLFW_KEY_LAST; i++)
{ {
if (window->keys[i] == GLFW_PRESS) if (window->keys[i] == GLFW_PRESS)
_glfwInputKey(window, i, 0, GLFW_RELEASE, 0); _glfwInputKey(window, i, 0, GLFW_RELEASE, 0);
} }
// Release all pressed mouse buttons
for (i = 0; i <= GLFW_MOUSE_BUTTON_LAST; i++) for (i = 0; i <= GLFW_MOUSE_BUTTON_LAST; i++)
{ {
if (window->mouseButtons[i] == GLFW_PRESS) if (window->mouseButtons[i] == GLFW_PRESS)