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.

This commit is contained in:
Mark Vejvoda 2010-04-13 23:55:07 +00:00
parent 80f5ee91d5
commit 4c8e4eaccb
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}
}