Document: exitPointerLock() メソッド
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
exitPointerLock()
は Document
インターフェイスのメソッドで、以前 Element.requestPointerLock
でリクエストされたポインターロックを非同期に解放します。
メモ: exitPointerLock()
メソッドは文書に対して呼び出されるのに対し、requestPointerLock()
メソッドは要素に対して呼び出されます。
リクエストが成功したか失敗したかを追跡するには、 pointerlockchange
および pointerlockerror
イベントを待ち受けする必要があります。
構文
js
exitPointerLock()
引数
なし。
返値
なし (undefined
)。
仕様書
Specification |
---|
Pointer Lock 2.0 # dom-document-exitpointerlock |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
exitPointerLock |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- Requires a vendor prefix or different name for use.
- Has more compatibility info.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.