Hide the system pointer over the game; the game draws its own aim

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-27 17:43:49 -04:00
co-authored by Claude Opus 5.5
parent f193b1c76c
commit 0ad3561e6a
4 changed files with 21 additions and 4 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ function pollPad() {
const ax = v => Math.abs(v) < dz ? 0 : (v - Math.sign(v) * dz) / (1 - dz);
const lx = ax(gp.axes[0] || 0), ly = ax(gp.axes[1] || 0), rx = ax(gp.axes[2] || 0), ry = ax(gp.axes[3] || 0);
const pressedAny = gp.buttons.some(b => b && b.pressed) || lx || ly || rx || ry;
if (pressedAny && !GAME.usingPad) { GAME.usingPad = true; canvas.classList.add('nocursor'); }
if (pressedAny) GAME.usingPad = true;
const modal = topModal();
if (modal || !GAME.running) {
const now = performance.now();