Added a default value just in case the pref is not defined.

This commit is contained in:
Areloch 2015-08-06 18:29:01 -05:00
parent 8248ecdeac
commit 68a2c9fa89

View file

@ -434,7 +434,7 @@ void PlatformWindowSDL::_triggerMouseLocationNotify(const SDL_Event& evt)
void PlatformWindowSDL::_triggerMouseWheelNotify(const SDL_Event& evt)
{
wheelEvent.trigger(getWindowId(), 0, evt.wheel.x, evt.wheel.y * Con::getIntVariable("$pref::Input::MouseWheelSpeed"));
wheelEvent.trigger(getWindowId(), 0, evt.wheel.x, evt.wheel.y * Con::getIntVariable("$pref::Input::MouseWheelSpeed", 120));
}
void PlatformWindowSDL::_triggerMouseButtonNotify(const SDL_Event& event)