Skip to content

Commit

Permalink
Add parameter validation
Browse files Browse the repository at this point in the history
  • Loading branch information
asdqwe committed Oct 22, 2024
1 parent 85b90d8 commit 5e3f0fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rcore.c
Original file line number Diff line number Diff line change
Expand Up @@ -3307,6 +3307,7 @@ float GetGamepadAxisMovement(int gamepad, int axis)
// Set gamepad global deadzone
void SetGamepadDeadzone(float deadzone)
{
if (deadzone < 0.0f) deadzone = 0.0f;
CORE.Input.Gamepad.globalDeadzone = deadzone;
}

Expand Down

0 comments on commit 5e3f0fd

Please sign in to comment.