Changes

Jump to: navigation, search

Implementing the Mouse Lock API in Firefox

819 bytes added, 13:25, 12 November 2011
Added high-level mouse lock tasks
==Tasks==
 
===Getting Started===
# Clone our repo and build a debug version locally
# Blog about your work on this implementation
# Add questions/answers to [[Mouse Lock Implementation FAQ]]
 
===High-Level Mouse Lock Implementation Tasks===
 
This list is incomplete, and needs more detail added as the following bits are completed.
 
# No mouse cursor is displayed when the mouse is locked
# MouseLockable DOM Implementation
## void lock (in Element target, optional in VoidCallback successCallback, optional in VoidCallback failureCallback);
## void unlock ();
## bool islocked ();
# navigator.pointer (access mouselock)
# Mouse Lock Platform Implementations
## Windows
## OS X
## Linux
## Mobile?
# mouselocklost event DOM Implementation
# Extend MouseEvent DOM implementation with movementX, movementY
# The browser must exit the mouse lock state if the user agent, window, or tab loses focus
# The ESC key should exit mouse lock
# Mouse lock should only work when in Full Screen Mode
==Resources==

Navigation menu