Updating Compass sample and MotionManager for glNext