From 7198539b33dbfacc28652018f648ccc9883cbfd7 Mon Sep 17 00:00:00 2001 From: Nejcraft Date: Fri, 5 Nov 2021 00:47:51 +0100 Subject: [PATCH] Update Input.cpp --- Source/Engine/Input/Input.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Engine/Input/Input.cpp b/Source/Engine/Input/Input.cpp index 93e18e563..181d2b620 100644 --- a/Source/Engine/Input/Input.cpp +++ b/Source/Engine/Input/Input.cpp @@ -514,6 +514,8 @@ float Input::GetGamepadAxis(InputGamepadIndex gamepad, GamepadAxis axis) val += g->GetAxis(axis); if(val >= 1) return 1; + if (val <= -1) + return -1; } return val; }