OculusTouchController

Description

class OculusTouchController extends WebVRController

Constructor

new OculusTouchController(vrGamepad)

Parameters

Name Type Description
vrGamepad any

Members

onSecondaryTriggerStateChangedObservable : Observable<ExtendedGamepadButton>

onThumbRestChangedObservable : Observable<ExtendedGamepadButton>

onAButtonStateChangedObservable : Observable<ExtendedGamepadButton>

onBButtonStateChangedObservable : Observable<ExtendedGamepadButton>

onXButtonStateChangedObservable : Observable<ExtendedGamepadButton>

onYButtonStateChangedObservable : Observable<ExtendedGamepadButton>

Methods

initControllerMesh(scene, meshLoaded) void

Parameters

Name Type Description
scene Scene
optional meshLoaded mesh AbstractMesh

handleButtonChange(buttonIdx, state, changes) void

Parameters

Name Type Description
buttonIdx number
state ExtendedGamepadButton
changes GamepadButtonChanges