News for hackers. Stuff that matters.
[deleted]
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...

Re:iCloud Beta Incorporates iOS 7 Look and Feel by martingordon on Wednesday August 14, 2013 @03:02PM (#6213517)
Only MacBooks with hard drives have Sudden Motion Sensors, those with SSDs do not.
Re:iCloud Beta Incorporates iOS 7 Look and Feel by smackfu on Wednesday August 14, 2013 @02:41PM (#6213385)
Actually, a lot of laptops including Macs do have an accelerometer. They use it to detect possible impacts and park the hard drive heads. Probably will be going away with SSDs.

http://support.apple.com/kb/HT1935

Re:iCloud Beta Incorporates iOS 7 Look and Feel by UVB-76 on Wednesday August 14, 2013 @02:39PM (#6213376)
I know it's not quite the same, but MacBooks do have sudden motion sensors.

See the "smackbook": https://www.youtube.com/watch?v=6uvQTTPr9Rw

Re:iCloud Beta Incorporates iOS 7 Look and Feel by LinaLauneBaer on Wednesday August 14, 2013 @02:41PM (#6213386)
As far I know MacBooks without SSD have a chip that can detect movement. Once the chip detects movement that is too fast it will turn off the hard disk to avoid damage. This chip can also be used with a C API.
Re:iCloud Beta Incorporates iOS 7 Look and Feel by coob on Wednesday August 14, 2013 @02:43PM (#6213403)
MacBooks have had accelerometers since the titanium Powerbooks.

They were used to park the hard drive heads in the case of sudden movement.

Re:iCloud Beta Incorporates iOS 7 Look and Feel by scott_karana on Wednesday August 14, 2013 @06:37PM (#6214829)
As mentioned elsewhere, the accelerometers are actually part of the HDDs themselves, so SSD-equipped Macs lack this functionality, sadly.