From e4f7b2a9be3b6a3f307070e43c3fc2f27c61f2cf Mon Sep 17 00:00:00 2001 From: Michael Green <84688932+michael-j-green@users.noreply.github.com> Date: Sat, 2 Mar 2024 00:06:22 +1100 Subject: [PATCH] Enabled pointer lock to capture the pointer when the canvas is clicked --- data/emulator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/emulator.js b/data/emulator.js index f420fd1..0b32164 100644 --- a/data/emulator.js +++ b/data/emulator.js @@ -1904,7 +1904,7 @@ class EmulatorJS { }) this.addEventListener(this.canvas, "click", (e) => { if (e.pointerType === "touch") return; - if (this.getCore(true) === "nds" && !this.paused) { + if (!this.paused) { if (this.canvas.requestPointerLock) { this.canvas.requestPointerLock(); } else if (this.canvas.mozRequestPointerLock) {