From 7521a251f576dbc647ec5dafefcded0245942ba1 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Wed, 24 Mar 2010 07:11:12 +0000 Subject: [PATCH] Commented out temp debug printing --- source/shared_lib/include/platform/sdl/window.h | 8 -------- source/shared_lib/sources/platform/sdl/window.cpp | 15 ++++++++------- 2 files changed, 8 insertions(+), 15 deletions(-) diff --git a/source/shared_lib/include/platform/sdl/window.h b/source/shared_lib/include/platform/sdl/window.h index 730703166..08ffb7a1c 100644 --- a/source/shared_lib/include/platform/sdl/window.h +++ b/source/shared_lib/include/platform/sdl/window.h @@ -92,14 +92,6 @@ const char vkDown = -10; const char vkReturn = -11; const char vkBack = -12; -/* -struct MouseState{ - bool leftMouse; - bool rightMouse; - bool centerMouse; -}; -*/ - enum WindowStyle{ wsFullscreen, wsWindowedFixed, diff --git a/source/shared_lib/sources/platform/sdl/window.cpp b/source/shared_lib/sources/platform/sdl/window.cpp index 67d973b73..c2e0d7788 100644 --- a/source/shared_lib/sources/platform/sdl/window.cpp +++ b/source/shared_lib/sources/platform/sdl/window.cpp @@ -66,7 +66,7 @@ bool Window::handleEvent() { case SDL_MOUSEBUTTONUP: case SDL_MOUSEMOTION: - printf("In [%s::%s] Line :%d\n",__FILE__,__FUNCTION__,__LINE__); + //printf("In [%s::%s] Line :%d\n",__FILE__,__FUNCTION__,__LINE__); setLastMouseEvent(Chrono::getCurMillis()); setMousePos(Vec2i(event.button.x, event.button.y)); break; @@ -74,16 +74,16 @@ bool Window::handleEvent() { switch(event.type) { case SDL_QUIT: - printf("In [%s::%s] Line :%d\n",__FILE__,__FUNCTION__,__LINE__); + //printf("In [%s::%s] Line :%d\n",__FILE__,__FUNCTION__,__LINE__); return false; case SDL_MOUSEBUTTONDOWN: - printf("In [%s::%s] Line :%d\n",__FILE__,__FUNCTION__,__LINE__); + //printf("In [%s::%s] Line :%d\n",__FILE__,__FUNCTION__,__LINE__); if(global_window) { global_window->handleMouseDown(event); } break; case SDL_MOUSEBUTTONUP: { - printf("In [%s::%s] Line :%d\n",__FILE__,__FUNCTION__,__LINE__); + //printf("In [%s::%s] Line :%d\n",__FILE__,__FUNCTION__,__LINE__); if(global_window) { MouseButton b = getMouseButton(event.button.button); setMouseState(b, false); @@ -94,7 +94,7 @@ bool Window::handleEvent() { break; } case SDL_MOUSEMOTION: { - printf("In [%s::%s] Line :%d\n",__FILE__,__FUNCTION__,__LINE__); + //printf("In [%s::%s] Line :%d\n",__FILE__,__FUNCTION__,__LINE__); //MouseState ms; //ms.leftMouse = (event.motion.state & SDL_BUTTON_LMASK) != 0; //ms.rightMouse = (event.motion.state & SDL_BUTTON_RMASK) != 0; @@ -109,7 +109,8 @@ bool Window::handleEvent() { break; } case SDL_KEYDOWN: - printf("In [%s::%s] Line :%d\n",__FILE__,__FUNCTION__,__LINE__); + //printf("In [%s::%s] Line :%d\n",__FILE__,__FUNCTION__,__LINE__); + /* handle ALT+Return */ if(event.key.keysym.sym == SDLK_RETURN && (event.key.keysym.mod & (KMOD_LALT | KMOD_RALT))) { @@ -121,7 +122,7 @@ bool Window::handleEvent() { } break; case SDL_KEYUP: - printf("In [%s::%s] Line :%d\n",__FILE__,__FUNCTION__,__LINE__); + //printf("In [%s::%s] Line :%d\n",__FILE__,__FUNCTION__,__LINE__); if(global_window) { global_window->eventKeyUp(getKey(event.key.keysym)); }