From 4c8e4eaccbeb0b10a680f6e027e2cba94b3850b0 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Tue, 13 Apr 2010 23:55:07 +0000 Subject: [PATCH] bugfix for silly legacy error that was thrown just because the user clicks a mouse button that the game didn't support. Just log the message now instead of throwing errors. --- source/shared_lib/sources/platform/sdl/window.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/shared_lib/sources/platform/sdl/window.cpp b/source/shared_lib/sources/platform/sdl/window.cpp index 64e00241..438aea5d 100644 --- a/source/shared_lib/sources/platform/sdl/window.cpp +++ b/source/shared_lib/sources/platform/sdl/window.cpp @@ -405,7 +405,8 @@ MouseButton Window::getMouseButton(int sdlButton) { case SDL_BUTTON_WHEELDOWN: return mbWheelDown; default: - throw std::runtime_error("Mouse Button > 3 not handled."); + //throw std::runtime_error("Mouse Button > 3 not handled."); + SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d] Mouse Button [%d] not handled.\n",__FILE__,__FUNCTION__,__LINE__,sdlButton); } }