W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2009

Re: [whatwg] Orientation event in Firefox

From: Thomas Broyer <t.broyer@gmail.com>
Date: Mon, 24 Aug 2009 12:24:42 +0200
Message-ID: <a9699fd20908240324n3d8a286cp968f72df795c2dcd@mail.gmail.com>
To: Marcin Hanclik <Marcin.Hanclik@access-company.com>
Cc: Doug Turner <doug.turner@gmail.com>, "whatwg@whatwg.org" <whatwg@whatwg.org>, "public-device-apis@w3.org" <public-device-apis@w3.org>, "public-webapps@w3.org" <public-webapps@w3.org>
On Mon, Aug 24, 2009 at 10:41 AM, Marcin
Hanclik<Marcin.Hanclik@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 10:25:24 GMT

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