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 {