http://www.w3.org/Bugs/Public/show_bug.cgi?id=9557
Summary: Could we get Mouse Capture via Javascript?
Product: WebAppsWG
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DOM3 Events
AssignedTo: [email protected]
ReportedBy: [email protected]
QAContact: [email protected]
CC: [email protected], [email protected]
With the new technologies like Canvas and WebGL it would be nice to get the
ability to capture the mouse much like Java does. A user-agent warning could be
displayed asking for permission or something with a key to release control.
I'm thinking of this mostly for games like first person shooters and RTS games
in the browser or other programs where moving the mouse off the screen is a
problem.
So the basic functionality would be the ability to turn on mouse capture (might
need another name, but whatever) then the ability to detect when a user has
activated the mouse capture by agreeing to allow their mouse to be captured, a
release event if the user-agent has a key to exit the mouse capture mode, and a
release mouse capture event that could be triggered to allow javascript to
release the mouse if it's captured.
I've seen multiple WebGL people talk about needing it for their projects but no
one could find where to submit suggestions relating to this. I'm hoping this is
the correct place.
--
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.