Skip to content

Commit

Permalink
Add teleport via gamepad axes support
Browse files Browse the repository at this point in the history
  • Loading branch information
Avaer Kazmer committed Sep 30, 2019
1 parent 30af411 commit dc5875e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.html
Original file line number Diff line number Diff line change
Expand Up @@ -6121,7 +6121,7 @@
_handleTrigger(gamepad, i, pressed, lastPressed);
lastPresseds[i] = pressed;

const pad = gamepad.buttons[0].pressed;
const pad = gamepad.buttons[0].pressed || gamepad.axes[1] <= -0.5 || gamepad.axes[3] <= -0.5;
const lastPad = lastPads[i];
_handlePad(gamepad, i, pad, lastPad);
lastPads[i] = pad;
Expand Down

0 comments on commit dc5875e

Please sign in to comment.