Open main menu

CDOT Wiki β

Changes

Implementing the Mouse Lock API in Firefox

31 bytes added, 12:26, 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 - <strong>abhatnagar</strong>## MouseLockable has lock(), unlock(), islocked() - <strong>abhatnagar</strong>## islocked() returns true if mouse is locked, false if not locked - abhatnagarJesse
## 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