diff --git a/Quake-iOS/GameControllerSetup.swift b/Quake-iOS/GameControllerSetup.swift index 1728093..d24b3c9 100644 --- a/Quake-iOS/GameControllerSetup.swift +++ b/Quake-iOS/GameControllerSetup.swift @@ -90,9 +90,13 @@ class GameControllerSetup: NSObject } remote!.extendedGamepad!.rightThumbstick.yAxis.valueChangedHandler = { (button: GCControllerAxisInput, value: Float) -> () in - - in_pitchangle = -value - + + if m_pitch.value > 0 { + in_pitchangle = -value + } else { + in_pitchangle = value + } + } remote!.extendedGamepad!.rightTrigger.pressedChangedHandler = { (button: GCControllerButtonInput, value: Float, pressed: Bool) -> () in