threepipe
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

DeviceOrientationControlsPlugin.ts 474B

12345678910
  1. import {ACameraControlsPlugin} from '../base/ACameraControlsPlugin'
  2. import {TControlsCtor} from '../../core'
  3. import {DeviceOrientationControls2} from '../../three'
  4. export class DeviceOrientationControlsPlugin extends ACameraControlsPlugin {
  5. public static readonly PluginType = 'DeviceOrientationControlsPlugin'
  6. readonly controlsKey = 'deviceOrientation'
  7. protected _controlsCtor: TControlsCtor = (object, _domElement)=> new DeviceOrientationControls2(object)
  8. }