Open main menu

CDOT Wiki β

Changes

Implementing the Mouse Lock API in Firefox

39 bytes added, 12:20, 29 November 2011
High-Level Mouse Lock Implementation Tasks
## "The concept of the mouse cursor will have been removed, and it will not move off the window or be clamped by a screen edge"
## "no mouse cursor is displayed" -- mouse cursor should be hidden while locked
## navigator.pointer (readonly) is a MouseLockable- abhatnagar## MouseLockable has lock(), unlock(), islocked()- abhatnagar## islocked() returns true if mouse is locked, false if not locked- abhatnagar
## lock(target) expects a DOM element, and takes two optional callbacks: successcallback, failurecallback.
## lock() should return immediately and call callbacks when lock succeeds or fails
1
edit