From a279e195be48e9375c69ebd81f567a4ab68857de Mon Sep 17 00:00:00 2001 From: Unrud Date: Mon, 21 Feb 2022 22:30:29 +0100 Subject: [PATCH] Windows: Reverse vertical scroll direction --- controller_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller_windows.go b/controller_windows.go index daae558..c0e0277 100644 --- a/controller_windows.go +++ b/controller_windows.go @@ -230,7 +230,7 @@ func (p *windowsController) PointerScroll(deltaHorizontal, deltaVertical int, fi inputs = append(inputs, mouseInput{ typ: inputMouse, dwFlags: mouseeventfWheel, - mouseData: uint32(deltaVertical * scrollMult), + mouseData: uint32(-deltaVertical * scrollMult), }) } if len(inputs) == 0 {