]> git.jsancho.org Git - lugaru.git/blobdiff - Source/OpenGL_Windows.cpp
Merge
[lugaru.git] / Source / OpenGL_Windows.cpp
index 8a9b6923c2662945978da3161d66777ea4d3c4ce..3f7b321daa50846da2ae8865568aca30b8151973 100644 (file)
@@ -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;
     }
 }