Added OrientationSensor support
Merge commit '1f708bb8f1e9ac4eed332c921b489a2eaf37b7d5'