Re: Mouse Lock

On Sun, Jun 19, 2011 at 5:10 AM, Olli Pettay <Olli.Pettay@helsinki.fi>wrote:

> On 06/17/2011 01:21 AM, Vincent Scheib wrote:
>
>> - 2 new methods on an element to enter and exit mouse lock. Two
>> callbacks on the entering call provide notification of success or failure.
>> - Mousemove event gains .deltaX .deltaY members, always valid, not just
>> during mouse lock.
>>
> I don't understand the need for .deltaX/Y.
>

I'm sure there are lots of other use cases but a typical use case for deltaX
and deltaY is camera movement in a first person game. You move the mouse to
the left to look left. The current mouseX, mouseY stop when mouse hits the
edge of the window/screen. deltaX, deltaY do not stop.


>
> More comments later.
>
>
> -Olli
>

Received on Sunday, 19 June 2011 19:39:31 UTC