X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FOpenGL_Windows.cpp;h=ac4a13ad6d3543a58de4707a0e3c0ba8164b549a;hb=6ba5a2e2ff4c5cb2e029890956f636a599d2eb8c;hp=7e32f0bbee6ceaede81f2dd56295954275211abc;hpb=dc03d60e08bdc0b97ea7b07e8973ed42450c9482;p=lugaru.git 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; } }