From 40c05d22a9246c85475c42d078ac8ae397be1595 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20L=C3=BCbe=C3=9F?= Date: Fri, 13 Nov 2020 13:47:13 +0100 Subject: [PATCH] Inverted hscrolling --- GlitchyEngine/src/Platform/Windows/WindowsWindow.bf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GlitchyEngine/src/Platform/Windows/WindowsWindow.bf b/GlitchyEngine/src/Platform/Windows/WindowsWindow.bf index 895270b..3bb9ad3 100644 --- a/GlitchyEngine/src/Platform/Windows/WindowsWindow.bf +++ b/GlitchyEngine/src/Platform/Windows/WindowsWindow.bf @@ -338,7 +338,8 @@ namespace GlitchyEngine.Platform.Windows // Horizontal scrolling case WM_MOUSEHWHEEL: { - int32 rotation = (int16)HighOrder!((int64)wParam) / WHEEL_DELTA; + // horizontal scrolling is inverted for some reason + int32 rotation = -(int16)HighOrder!((int64)wParam) / WHEEL_DELTA; var event = scope MouseScrolledEvent(rotation, 0); window._eventCallback(event);