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

Re: Mouse Lock

From: Robert O'Callahan <robert@ocallahan.org>
Date: Tue, 21 Jun 2011 14:47:43 +1200
Message-ID: <BANLkTimOVRmXK2rdHBB-0+ZQz7RHvJpVuQ@mail.gmail.com>
To: Glenn Maynard <glenn@zewt.org>
Cc: Vincent Scheib <scheib@google.com>, Brandon Andrews <warcraftthreeft@sbcglobal.net>, "Gregg Tavares (wrk)" <gman@google.com>, Charles Pritchard <chuck@jumis.com>, Kenneth Russell <kbr@google.com>, public-webapps@w3.org
On Tue, Jun 21, 2011 at 8:06 AM, Glenn Maynard <glenn@zewt.org> wrote:

> First-person games typically implement delta mouse movement by hiding
> the mouse cursor, warping the invisible cursor to the center of the
> screen when it moves, and monitoring the distance of mouse movement
> from the center of the screen to calculate deltas.  I don't think
> Windows provides a way to retrieve delta mouse movements that doesn't
> clip when the mouse reaches the edge of the screen.  I'm not sure
> about other environments.

If this is true (I have no reason to believe it isn't!), then mouselock
needs to have the side effect of disabling regular mouse events and hiding
the mouse cursor, since it would be confusing and potentially trigger bugs
if Windows alone did strange things with mouse events.

"If we claim to be without sin, we deceive ourselves and the truth is not in
us. If we confess our sins, he is faithful and just and will forgive us our
sins and purify us from all unrighteousness. If we claim we have not sinned,
we make him out to be a liar and his word is not in us." [1 John 1:8-10]
Received on Tuesday, 21 June 2011 02:48:19 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:32 UTC