From 3aba4a7259455c2eafa74cec6055fb07a2e1bdb6 Mon Sep 17 00:00:00 2001 From: Areloch Date: Tue, 4 Aug 2015 23:01:59 -0500 Subject: [PATCH] SDL mouse wheel speed fix. Default scroll speed wasn't delta-modified, so scroll gui controls were very slow when scrolled via mouse wheel.. This corrects the issue. --- Engine/source/windowManager/sdl/sdlWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Engine/source/windowManager/sdl/sdlWindow.cpp b/Engine/source/windowManager/sdl/sdlWindow.cpp index 140673313..10f4cce4a 100644 --- a/Engine/source/windowManager/sdl/sdlWindow.cpp +++ b/Engine/source/windowManager/sdl/sdlWindow.cpp @@ -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); + wheelEvent.trigger(getWindowId(), 0, evt.wheel.x, evt.wheel.y * WHEEL_DELTA); } void PlatformWindowSDL::_triggerMouseButtonNotify(const SDL_Event& event)