mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
Also apply scroll strength to horizontal scrolling.
This commit is contained in:
parent
68a2c9fa89
commit
5efc04dd47
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue