pointerlock-api.js 557 B

123456789101112131415161718
  1. /*!
  2. {
  3. "name": "Pointer Lock API",
  4. "property": "pointerlock",
  5. "notes": [{
  6. "name": "MDN Docs",
  7. "href": "https://developer.mozilla.org/en-US/docs/API/Pointer_Lock_API"
  8. }],
  9. "builderAliases": ["pointerlock_api"]
  10. }
  11. !*/
  12. /* DOC
  13. Detects support the pointer lock API which allows you to lock the mouse cursor to the browser window.
  14. */
  15. define(['Modernizr', 'prefixed'], function(Modernizr, prefixed) {
  16. // https://developer.mozilla.org/en-US/docs/API/Pointer_Lock_API
  17. Modernizr.addTest('pointerlock', !!prefixed('exitPointerLock', document));
  18. });