[whatwg] Orientation event in Firefox

On Mon, Aug 24, 2009 at 10:41 AM, Marcin
Hanclik<Marcin.Hanclik at access-company.com> wrote:
> Hi Doug,
>
> What do you think about the proposal in [1]?
> Some discussion is needed on WebApps for this topic to move forward.
>
> Thanks,
> Marcin
>
> [1] http://lists.w3.org/Archives/Public/public-webapps/2009JulSep/0764.html

For the record, see also:
http://browserplus.yahoo.com/developer/explore/?s=Motion

Demo: http://browserplus.yahoo.com/demos/marbles/intro

It isn't based on events (you have to poll continuously) and uses
values ranging from -127 to 128 (well, it's rather bizarre: "x" seems
to range from -127 to 128 while y ranges from -128 to 127! ?I can't
say for "z" as my laptop doesn't have an accelerometer?)
And it has a fallback on mouse: 0,0 being the center of the screen
(128,-128 being the top-left corner, and -127,127 the bottom-right
corner) and the "z" coordinate always being 0.

-- 
Thomas Broyer

Received on Monday, 24 August 2009 03:24:42 UTC