mirror of
https://github.com/glest/glest-source.git
synced 2025-02-24 11:42:31 +01:00
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:
parent
80f5ee91d5
commit
4c8e4eaccb
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user