Re:iCloud Beta Incorporates iOS 7 Look and Feel
by flyosity on Wednesday August 14, 2013 @02:44PM
(#6213407)
This is not true. MacBooks all have a Sudden Motion Sensor which has an API that will give you live accelerometer data. Here's a quick list of apps/games that use it:
http://modmyi.com/forums/mac-gaming/800715-sudden-motion-sen...
And here's an open-source Obj-C library to get the data:
http://www.suitable.com/tools/smslib.html
To access the data via JavaScript you can just listen for the "deviceorientation" event.
http://stackoverflow.com/questions/4378435/how-to-access-acc...