全局监听玩家的输入。
Globally listens for player input.
全局监听当玩家按下鼠标时产生的事件。
Globally listens for events generated when the player presses the mouse button.
Readonly
全局监听当玩家指针锁定状态变化或出错时产生的事件。
Globally listens for events generated when the player's pointer lock state changes or an error occurs.
全局监听玩家指针与UI元素交互时的产生的事件。
Globally listens for events generated when the player's pointer interacts with UI elements.
调用后锁定鼠标指针,由于浏览器限制,此操作可能会失败。
有兴趣可以查看https://w3c.github.io/pointerlock/#dom-element-requestpointerlock。
Locks the mouse pointer after being called. This operation may fail due to browser restrictions.
For those interested, you can check https://w3c.github.io/pointerlock/#dom-element-requestpointerlock.
调用后解锁鼠标指针。
Unlocks the mouse pointer after being called.
Zh
全局监听玩家的输入。
En
Globally listens for player input.