From a9aed3805eda148c6962ab79473fb9788f9d2a72 Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=B4me=20BERNIGAUD?= Date: Fri, 4 Jun 2010 21:48:39 +0200 Subject: [PATCH] Removed an unused function --- Source/OpenGL_Windows.cpp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/Source/OpenGL_Windows.cpp b/Source/OpenGL_Windows.cpp index 7e32f0b..ac4a13a 100644 --- a/Source/OpenGL_Windows.cpp +++ b/Source/OpenGL_Windows.cpp @@ -286,18 +286,6 @@ void DrawGL (Game & game) } } -static inline int clamp_sdl_mouse_button(Uint8 button) -{ - if (button == 2) // right mouse button is button 3 in SDL. - button = 3; - else if (button == 3) - button = 2; - - if ((button >= 1) && (button <= 3)) - return button - 1; - return -1; -} - static void sdlEventProc(const SDL_Event &e, Game &game) { int val; @@ -319,9 +307,6 @@ static void sdlEventProc(const SDL_Event &e, Game &game) SDL_WM_ToggleFullScreen(SDL_GetVideoSurface()); } return; - - case SDL_KEYUP: - return; } } -- 2.39.5