W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2012

[whatwg] Device proximity and light events

From: Doug Turner <dougt@mozilla.com>
Date: Fri, 4 May 2012 13:03:16 -0700
Message-ID: <60A464CC-D2D1-4726-97F2-102C5267EC62@mozilla.com>
I looked at the Sensor API.  I was hoping to have something very simple and lightweight.  I most likely will implement other sensor types in the same way - simple dom events with attributes that are specific to the event.  This is what we did for device motion and orientation, and it has worked out quite well.

Thanks!
Doug




On May 4, 2012, at 11:34 AM, Tran, Dzung D wrote:

> Hello Doug,
> 
> Proximity and Light is currently in the Sensor API spec at: 
> 
> http://dvcs.w3.org/hg/dap/raw-file/tip/sensor-api/Overview.html
> 
> This spec is in process of revising. I am planning to update this in the next couple of days.
> 
> Thanks
> Tran
> 
> 
> -----Original Message-----
> From: whatwg-bounces at lists.whatwg.org [mailto:whatwg-bounces at lists.whatwg.org] On Behalf Of Doug Turner
> Sent: Friday, May 04, 2012 11:02 AM
> To: whatwg at whatwg.org
> Subject: [whatwg] Device proximity and light events
> 
> I have added two new events to Firefox which allow web apps to detect light and proximity changes. 
> 
> http://dougturner.wordpress.com/2012/03/22/device-proximity-sensor/
> http://dougturner.wordpress.com/2012/03/26/device-light-sensor/
> 
> I'd like feedback and to see if there was any interest in supporting these events in other UAs.
> 
> Thanks
> Doug
> 
Received on Friday, 4 May 2012 13:03:16 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:48:08 GMT