Skip to content

Commit

Permalink
Bugfix teleport mesh not triggered by thumbpad
Browse files Browse the repository at this point in the history
  • Loading branch information
Avaer Kazmer committed Sep 30, 2019
1 parent dc5875e commit 64a1e52
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 @@ -6280,7 +6280,7 @@

for (let i = 0; i < 2; i++) {
const gamepad = gamepads[i];
if (gamepad && gamepad.buttons[0].pressed) {
if (gamepad && (gamepad.buttons[0].pressed || gamepad.axes[1] <= -0.5 || gamepad.axes[3] <= -0.5)) {
const controllerIndex = _getControllerIndex(gamepad);
const teleportMesh = teleportMeshes[controllerIndex];

Expand Down

0 comments on commit 64a1e52

Please sign in to comment.