Changes

Jump to: navigation, search

Implementing the Mouse Lock API in Firefox

104 bytes added, 12:05, 24 November 2011
High-Level Mouse Lock Implementation Tasks
# The ESC key should exit mouse lock - diogogmt
# Mouse lock should only work when in Full Screen Mode - diogogmt, rhung
# Suppress non-user generated events in mouse lock mode - rhung
# [[Refactor nsIDOMNavigator changes for pointer attribute to be in separate interface]]
# Do we need to add a user pref to enable/disable mouse lock?
# Proper IDL documentation for navigator.pointer (see example in https://mxr.mozilla.org/mozilla-central/source/dom/interfaces/html/nsIDOMHTMLElement.idl#103), MouseLockable and its methods, MouseLockLost event, etc.
# Write a JavaScript library to somehow combine element.mozRequestFullScreen() and navigator.pointer.lock(). It would be good to hide the complexities of doing fullscreen then locking in a single API call.
# Mouse lock specification fix requests
# Convert Rescue Fox to use Mouse Lock, see https://github.com/mozilla/rescuefox
# Convert http://cjcliffe.github.com/CubicVR.js/cubicvr/samples/fps_demo/level1.html to use Mouse Lock
1
edit

Navigation menu