X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FOpenGL_Windows.cpp;h=7e32f0bbee6ceaede81f2dd56295954275211abc;hb=dc03d60e08bdc0b97ea7b07e8973ed42450c9482;hp=16b8c82357047a24df357e809ada131ea82f87fc;hpb=326621743b8eea53a3a040f657ad77e9f19fc7da;p=lugaru.git diff --git a/Source/OpenGL_Windows.cpp b/Source/OpenGL_Windows.cpp index 16b8c82..7e32f0b 100644 --- a/Source/OpenGL_Windows.cpp +++ b/Source/OpenGL_Windows.cpp @@ -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.