α : rad
β : rad
γ : rad
Listen to DeviceOrientation events
See the device-orientation.js source to see how this is done.