4 ms·
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 u
by flyosity 13y ago
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-sensor-games-apps.html 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 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-accelerometer-gyroscope-data-from-javascript http://stackoverflow.com/questions/4378435/how-to-access-acc...
- martingordon 13y agoOnly MacBooks with hard drives have Sudden Motion Sensors, those with SSDs do not.