mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-17 15:11:04 +00:00
19 lines
557 B
JavaScript
19 lines
557 B
JavaScript
/*!
|
|
{
|
|
"name": "Pointer Lock API",
|
|
"property": "pointerlock",
|
|
"notes": [{
|
|
"name": "MDN Docs",
|
|
"href": "https://developer.mozilla.org/en-US/docs/API/Pointer_Lock_API"
|
|
}],
|
|
"builderAliases": ["pointerlock_api"]
|
|
}
|
|
!*/
|
|
/* DOC
|
|
Detects support the pointer lock API which allows you to lock the mouse cursor to the browser window.
|
|
*/
|
|
define(['Modernizr', 'prefixed'], function(Modernizr, prefixed) {
|
|
// https://developer.mozilla.org/en-US/docs/API/Pointer_Lock_API
|
|
Modernizr.addTest('pointerlock', !!prefixed('exitPointerLock', document));
|
|
});
|