generic sensor API
The sensors on the devices we carry around every day are a great way of providing extra benefit to an application. Using the physical environment, such as with an accelerometer, can provide added immersion for creative experience.
If we already have events for these kinds of things, why is there a new API? Devices are constantly changing and adding new and varied sensors. To save having to create new APIS for each new sensor that comes out, the Generic Sensor API creates a simplified interface for them all.
While the API is still in development, Chrome and Firefox both include it behind flags to play around with. Other browsers have it under consideration for the future. • w3.org/tr/generic-sensor