W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2010

[Bug 9557] New: Could we get Mouse Capture via Javascript?

From: <bugzilla@jessica.w3.org>
Date: Tue, 20 Apr 2010 07:20:27 +0000
To: public-webapps@w3.org
Message-ID: <bug-9557-2927@http.www.w3.org/Bugs/Public/>
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: schepers@w3.org
        ReportedBy: warcraftthreeft@sbcglobal.net
         QAContact: member-webapi-cvs@w3.org
                CC: mike@w3.org, public-webapps@w3.org


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.
Received on Tuesday, 20 April 2010 07:20:43 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:38 GMT