Update Input.cpp

This commit is contained in:
Nejcraft
2021-11-05 00:47:51 +01:00
committed by GitHub
parent e3505a40db
commit 7198539b33

View File

@@ -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;
}