W3C home > Mailing lists > Public > public-geolocation@w3.org > July 2010

Re: DeviceOrientation comments

From: Dean Jackson <dino@apple.com>
Date: Fri, 23 Jul 2010 14:31:18 +1000
Message-Id: <867FFF33-E64C-44EA-803D-F634574253C3@apple.com>
To: public-geolocation@w3.org

On 22/07/2010, at 9:53 PM, Dean Jackson wrote:

> My main comment/proposal is that Accelerometer Event should include the ability to return rotation around the 3 axes. 

I've realised this is pretty silly. A new event type is a better idea.

interface GyroscopeEvent : Event {
  readonly attribute double xRotationRate;
  readonly attribute double yRotationRate;
  readonly attribute double zRotationRate;

  void initGyroscopeEvent(....


This way implementations without gyroscopes don't need to waste space sending null values. Similar to AccelerometerEvents, if you can't support it, you fire one event with all nulls.

Received on Friday, 23 July 2010 04:31:54 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:51:01 UTC