ViveController

Description

class ViveController extends WebVRController

Constructor

new ViveController(vrGamepad)

Parameters

Name Type Description
vrGamepad any

Members

onLeftButtonStateChangedObservable : Observable<ExtendedGamepadButton>

onRightButtonStateChangedObservable : Observable<ExtendedGamepadButton>

onMenuButtonStateChangedObservable : Observable<ExtendedGamepadButton>

Methods

initControllerMesh(scene, meshLoaded) void

Parameters

Name Type Description
scene Scene
optional meshLoaded mesh AbstractMesh

handleButtonChange(buttonIdx, state, changes) void

Vive mapping:

0: touchpad

1: trigger

2: left AND right buttons

3: menu button

Parameters

Name Type Description
buttonIdx number
state ExtendedGamepadButton
changes GamepadButtonChanges