Gets the rotation of the device around its z axis (into the screen). For example when you steer with the iPhone in a driving game.
How the user is expected to hold the device (where angle will be zero).
Store the roll angle in a Float Variable.
Limit the roll angle.
Smooth the roll angle as it changes. You can play with this value to balance responsiveness and lag/smoothness.
Repeat every frame.