This is a pretty cool little hack. The sensor is supposed to protect the hard drive against sudden drops and movements but with a lirttle creative coding the sensor can be used as an input device. Read on…
Repurposing the Powerbook Motion Sensor : Gizmodo