Skip to content

Commit 64a1e52

Browse files
author
Avaer Kazmer
committed
Bugfix teleport mesh not triggered by thumbpad
1 parent dc5875e commit 64a1e52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -6280,7 +6280,7 @@
62806280

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

0 commit comments

Comments
 (0)