Add motion and orientation listeners