W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2011

Re: Mouse Capture for Canvas

From: Kenneth Russell <kbr@google.com>
Date: Tue, 8 Feb 2011 17:54:14 -0800
Message-ID: <AANLkTimaaD4qeJGNHgak9236jYrC0qJwMYK8a8p=U9-U@mail.gmail.com>
To: robert@ocallahan.org
Cc: Brandon Andrews <warcraftthreeft@sbcglobal.net>, public-webapps@w3.org
On Tue, Feb 8, 2011 at 5:49 PM, Robert O'Callahan <robert@ocallahan.org> wrote:
> On Wed, Feb 9, 2011 at 11:37 AM, Kenneth Russell <kbr@google.com> wrote:
>> This API doesn't handle all of the desired use cases. In particular,
>> to implement Quake-style mouse look (needed for e.g.
>> http://code.google.com/p/quake2-gwt-port/) it needs to work when the
>> mouse button is up, not just down.
> How would you satisfy that use-case without enabling abusive behavior by Web
> sites?

Per the proposal posted earlier and at
http://www.w3.org/Bugs/Public/show_bug.cgi?id=9557 :

1. Only enable mouse capture in response to a user gesture (clicking
on the element).
2. Possibly require confirmation from the user to enter mouse capture mode.
3. Present clear UI to indicate how to exit mouse capture mode.


> (I think that case would work with our API if the game was full-screen,
> which I expect it normally would be.)
> Rob
> --
> "Now the Bereans were of more noble character than the Thessalonians, for
> they received the message with great eagerness and examined the Scriptures
> every day to see if what Paul said was true." [Acts 17:11]
Received on Wednesday, 9 February 2011 01:54:44 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:16 UTC