From 98eb79b7d953838e752b9ea687da3516b5d8ae50 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Mon, 7 Mar 2011 14:24:55 +0100 Subject: [PATCH] Removed function made superfluous by window struct memset. --- src/window.c | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/src/window.c b/src/window.c index 3b0ca8cb..83f8728f 100644 --- a/src/window.c +++ b/src/window.c @@ -85,39 +85,6 @@ static void clearScrollOffsets(void) } -//======================================================================== -// Clear all input state for the specified window -//======================================================================== - -static void clearInputState(_GLFWwindow* window) -{ - int i; - - // Release all keyboard keys - for (i = 0; i <= GLFW_KEY_LAST; i++) - window->key[i] = GLFW_RELEASE; - - // Release all mouse buttons - for (i = 0; i <= GLFW_MOUSE_BUTTON_LAST; i++) - window->mouseButton[i] = GLFW_RELEASE; - - // Set mouse position to (0,0) - window->mousePosX = 0; - window->mousePosY = 0; - - // Set scroll offsets to (0,0) - window->scrollX = 0; - window->scrollY = 0; - - // The default is to use non sticky keys and mouse buttons - window->stickyKeys = GL_FALSE; - window->stickyMouseButtons = GL_FALSE; - - // The default is to disable key repeat - window->keyRepeat = GL_FALSE; -} - - //======================================================================== // Checks whether the OpenGL part of the window config is sane //======================================================================== @@ -416,8 +383,6 @@ GLFWAPI GLFWwindow glfwOpenWindow(int width, int height, return GL_FALSE; } - clearInputState(window); - // Check width & height if (width > 0 && height <= 0) {