Update Input.cpp
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user