Skip to main content

Class: DeviceOrientationControls2

Extra-Helpers.DeviceOrientationControls2

Hierarchy

Implements

Methods

addEventListener

addEventListener(type, listener): void

Adds a listener to an event type.

Parameters

NameType
type"change"
listener(event: IEvent<"change">) => void

Returns

void

Implementation of

ICameraControls.addEventListener

Inherited from

SimpleEventDispatcher.addEventListener

Defined in

webgi/src/helpers/EventDispatcher.ts:48


hasEventListener

hasEventListener(type, listener): boolean

Checks if listener is added to an event type.

Parameters

NameType
type"change"
listener(event: IEvent<"change">) => void

Returns

boolean

Implementation of

ICameraControls.hasEventListener

Inherited from

SimpleEventDispatcher.hasEventListener

Defined in

webgi/src/helpers/EventDispatcher.ts:56


removeEventListener

removeEventListener(type, listener): void

Removes a listener from an event type.

Parameters

NameType
type"change"
listener(event: IEvent<"change">) => void

Returns

void

Implementation of

ICameraControls.removeEventListener

Inherited from

SimpleEventDispatcher.removeEventListener

Defined in

webgi/src/helpers/EventDispatcher.ts:63


dispatchEvent

dispatchEvent(event): void

Fire an event type.

Parameters

NameType
eventIEvent<"change">

Returns

void

Implementation of

ICameraControls.dispatchEvent

Inherited from

SimpleEventDispatcher.dispatchEvent

Defined in

webgi/src/helpers/EventDispatcher.ts:74


onDeviceOrientationChangeEvent

onDeviceOrientationChangeEvent(event): void

Parameters

NameType
eventDeviceOrientationEvent

Returns

void

Defined in

webgi/src/helpers/threejs/DeviceOrientationControl.ts:57


onScreenOrientationChangeEvent

onScreenOrientationChangeEvent(): void

Returns

void

Defined in

webgi/src/helpers/threejs/DeviceOrientationControl.ts:61


connect

connect(): void

Returns

void

Defined in

webgi/src/helpers/threejs/DeviceOrientationControl.ts:68


disconnect

disconnect(): void

Returns

void

Defined in

webgi/src/helpers/threejs/DeviceOrientationControl.ts:104


update

update(): void

Returns

void

Implementation of

ICameraControls.update

Defined in

webgi/src/helpers/threejs/DeviceOrientationControl.ts:118


dispose

dispose(): void

Returns

void

Implementation of

ICameraControls.dispose

Defined in

webgi/src/helpers/threejs/DeviceOrientationControl.ts:147


setObjectQuaternion

setObjectQuaternion(alpha, beta, gamma, orient): void

Parameters

NameType
alphanumber
betanumber
gammanumber
orientnumber

Returns

void

Defined in

webgi/src/helpers/threejs/DeviceOrientationControl.ts:156

Properties

object

object: Object3D<Event>

Implementation of

ICameraControls.object

Defined in

webgi/src/helpers/threejs/DeviceOrientationControl.ts:26


enabled

enabled: boolean = false

Implementation of

ICameraControls.enabled

Defined in

webgi/src/helpers/threejs/DeviceOrientationControl.ts:27


deviceOrientation

Optional deviceOrientation: DeviceOrientationEvent

Defined in

webgi/src/helpers/threejs/DeviceOrientationControl.ts:28


screenOrientation

Optional screenOrientation: ScreenOrientation

Defined in

webgi/src/helpers/threejs/DeviceOrientationControl.ts:29


lastOrder

lastOrder: string = 'XYZ'

Defined in

webgi/src/helpers/threejs/DeviceOrientationControl.ts:30


dampingFactor

dampingFactor: number = 0.05

Defined in

webgi/src/helpers/threejs/DeviceOrientationControl.ts:33


lastQuaternion

lastQuaternion: Quaternion

Defined in

webgi/src/helpers/threejs/DeviceOrientationControl.ts:34

Constructors

constructor

new DeviceOrientationControls2(object)

Parameters

NameType
objectObject3D<Event>

Overrides

SimpleEventDispatcher.constructor

Defined in

webgi/src/helpers/threejs/DeviceOrientationControl.ts:36