An Objective-C library to access the Sudden Motion Sensors in Mac laptops.

Official SMSLib web site