WebVRController

Description

class WebVRController extends PoseEnabledController

Constructor

new WebVRController(vrGamepad)

Parameters

Name Type Description
vrGamepad any

Members

onTriggerStateChangedObservable : Observable<ExtendedGamepadButton>

onMainButtonStateChangedObservable : Observable<ExtendedGamepadButton>

onSecondaryButtonStateChangedObservable : Observable<ExtendedGamepadButton>

onPadStateChangedObservable : Observable<ExtendedGamepadButton>

onPadValuesChangedObservable : Observable<StickValues>

pad : StickValues

hand : string

defaultModel : AbstractMesh

abstract : ()

void : ()

abstract : ()

void : ()

Methods

onButtonStateChange(callback) void

Parameters

Name Type Description
callback controlledIndex number
buttonIndex number
state ExtendedGamepadButton

update() void

dispose() void