退出由 requestPointerLock 开始的指针锁定。
调用 requestPointerLock() 会锁定 mouseX、mouseY、pmouseX 和 pmouseY 的值。调用 exitPointerLock() 会恢复更新鼠标系统变量。
注意:大多数浏览器在调用 requestPointerLock() 需要一个输入操作,比如点击。建议在事件函数中调用 requestPointerLock(),例如 doubleClicked()。
示例
This page is generated from the comments in src/events/mouse.js . Please feel free to edit it and submit a pull request!