How to create the Compass?

■ Summary

- Deviceorientation is virtual sensor using accelerometer, gyroscope, magnetic sensor.
So if you want to use the Compass, your target should support the accelerometer, gyroscope, magnetic sensor.