浏览代码

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.
Areloch 10 年之前
父节点
当前提交
3aba4a7259
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Engine/source/windowManager/sdl/sdlWindow.cpp

+ 1 - 1
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)