Can be used to orient the camera based on the mobile device's orientation.
[example:misc_controls_deviceorientation misc / controls / deviceorientation ]
[page:Camera object]: The camera to be controlled.
Creates a new instance of [name].
Fires when the camera has been transformed by the controls.
The alpha offset in radians. Default is *0*.
The current *deviceorientation* event object.
Whether or not the controls are enabled.
The camera to be controlled.
The orientation in degrees (in 90-degree increments) of the viewport relative to the device's natural orientation. Default is *0*.
Adds the event listeners of the controls and enables it.
Removes the event listeners of the controls and disables it.
Should be called if the controls is no longer required.
Updates the controls. Usually called in the animation loop.