Skip to content

Commit

Permalink
fix missing if
Browse files Browse the repository at this point in the history
  • Loading branch information
KilledByAPixel committed Aug 7, 2024
1 parent 22803a3 commit 07f12a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engineInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ function gamepadsUpdate()
sticks[0] = vec2();
if (touchGamepadAnalog)
sticks[0] = applyDeadZones(touchGamepadStick);
else (touchGamepadStick.lengthSquared() > .3)
else if (touchGamepadStick.lengthSquared() > .3)
{
// convert to 8 way dpad
sticks[0].x = Math.round(touchGamepadStick.x);
Expand Down

0 comments on commit 07f12a2

Please sign in to comment.