Handle Escape key exit from pointer lock and remove redundant test case in third-person controller
This commit is contained in:
@@ -6731,6 +6731,13 @@ export class RuntimeHost {
|
||||
return;
|
||||
}
|
||||
|
||||
if (
|
||||
document.pointerLockElement === this.domElement &&
|
||||
event.code === "Escape"
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
const playerInputBindings = this.resolveRuntimePlayerInputBindings();
|
||||
const interactKeyboardBinding = playerInputBindings.keyboard.interact;
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user