mirror of
https://github.com/EmulatorJS/EmulatorJS.git
synced 2024-09-20 02:46:23 +00:00
Enabled pointer lock to capture the pointer when the canvas is clicked
This commit is contained in:
parent
ae0ea3cc99
commit
e4f7b2a9be
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue