]> git.jsancho.org Git - lugaru.git/blobdiff - Source/OpenGL_Windows.cpp
Merge original history
[lugaru.git] / Source / OpenGL_Windows.cpp
index 16b8c82357047a24df357e809ada131ea82f87fc..8a9b6923c2662945978da3161d66777ea4d3c4ce 100644 (file)
@@ -286,29 +286,6 @@ void DrawGL (Game & game)
        }
 }
 
-
-/*static KeyMap g_theKeys;
-
-void SetKey( int key)
-{
-    g_theKeys[ key >> 3] |= (1 << (key & 7));
-}
-
-void ClearKey( int key)
-{
-    g_theKeys[ key >> 3] &= (0xff ^ (1 << (key & 7)));
-}
-
-void GetKeys(  unsigned char theKeys[16])
-{
-    memcpy( theKeys, &g_theKeys, 16);
-}*/
-
-Boolean Button()
-{
-    return SDL_GetMouseState(NULL,NULL)&SDL_BUTTON(SDL_BUTTON_LEFT);
-}
-
 static inline int clamp_sdl_mouse_button(Uint8 button)
 {
     if (button == 2)   // right mouse button is button 3 in SDL.
@@ -913,7 +890,7 @@ int main(int argc, char **argv)
                pgame = 0;
 
                CleanUp ();
-               
+
                return 0;
        }
        catch (const std::exception& error)