From ccd8a2e8f09c78becc3fd0788aeab1dd1a1b14e3 Mon Sep 17 00:00:00 2001 From: Gabriel CORRAL <49116367+MoustacheOff@users.noreply.github.com> Date: Mon, 19 Oct 2026 23:19:16 +0100 Subject: [PATCH] fix: honor Reverse Scroll Direction for trackpad/mouse scrolling The GCMouse scroll handlers ignored the reverseScrollDirection setting, which was only read in the touch two-finger scroll path. Fixes #115 --- OpenParsec/GameController.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenParsec/GameController.swift b/OpenParsec/GameController.swift index c9e9229..5db09c6 100644 --- a/OpenParsec/GameController.swift +++ b/OpenParsec/GameController.swift @@ -110,7 +110,7 @@ class GamepadController { } var accumulatedScrollX: Float = 0 mouse.mouseInput?.scroll.yAxis.valueChangedHandler = {(_: GCControllerAxisInput, value: Float) in - accumulatedScrollX += value + accumulatedScrollX += SettingsHandler.reverseScrollDirection ? -value : value let wheelX = Int32(accumulatedScrollX) accumulatedScrollX -= Float(wheelX) if wheelX != 0 { @@ -119,7 +119,7 @@ class GamepadController { } var accumulatedScrollY: Float = 0 mouse.mouseInput?.scroll.xAxis.valueChangedHandler = {(_: GCControllerAxisInput, value: Float) in - accumulatedScrollY += value + accumulatedScrollY += SettingsHandler.reverseScrollDirection ? -value : value let wheelY = Int32(accumulatedScrollY) accumulatedScrollY -= Float(wheelY) if wheelY != 0 {