Also apply scroll strength to horizontal scrolling.

This commit is contained in:
Areloch 2015-08-06 22:18:10 -05:00
parent 68a2c9fa89
commit 5efc04dd47

View file

@ -434,7 +434,8 @@ 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", 120));
S32 wheelDelta = Con::getIntVariable("$pref::Input::MouseWheelSpeed", 120);
wheelEvent.trigger(getWindowId(), 0, evt.wheel.x * wheelDelta, evt.wheel.y * wheelDelta);
}
void PlatformWindowSDL::_triggerMouseButtonNotify(const SDL_Event& event)