Hour 19. Sensing Movement with Accelerometer Input
What You’ll Learn in This Hour
• How to determine the device’s orientation
• How to measure tilt
• How to measure movement
The Nintendo Wii introduced motion sensing as an effective input technique for main-stream consumer electronics. Apple applied this technology to great success with the iPhone and iPod Touch. Apple’s devices are equipped with an accelerometer that can be used to determine the orientation, movement, and tilt of the device. With the iPhone’s accelerometer, a user can control applications by simply adjusting the physical orientation of the device and moving it in space.
This innovative and natural input mechanism is exposed to third-party applications in the iPhone ...
Get Sams Teach Yourself iPhone Application Development in 24 Hours now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.