W3C home > Mailing lists > Public > public-device-apis-log@w3.org > March 2017

Re: [sensors] Provide the DeviceOrientation sensor

From: Tobie Langel via GitHub <sysbot+gh@w3.org>
Date: Fri, 03 Mar 2017 14:01:17 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-283960197-1488549676-sysbot+gh@w3.org>
> We could also make it an argument to a generic orientation sensor, 
like say { type: "compass" | "device" | "gamepad" | "vr-headset" ... }

What's interesting is that the above four have massively different 
latency, accuracy and energy consumption characteristics and don't 
rely on the same underlying HW sensors.

The question is how should we expose that to the API consumer?

Basically, how do we strike the right balance between providing the 
right underlying primitives and making it easy for developers to use 
the APIs.

In the spirit of the extensible web manifesto, we'd lay bare the 
underlying structures on which these sensors are based, leaving it to 
JS libraries to offer more user-friendly domain-specific APIs. And 
then only pave the cowpath.

-- 
GitHub Notification of comment by tobie
Please view or discuss this issue at 
https://github.com/w3c/sensors/issues/170#issuecomment-283960197 using
 your GitHub account
Received on Friday, 3 March 2017 14:01:34 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 12:18:52 UTC