SteamVRInput

altspace/utilities/behaviors. SteamVRInput

The SteamVRInput behavior manages SteamVR input devices. It should be added to the ThreeJS scene and is a requirement of SteamVRTrackedObject.

Constructor

new SteamVRInput(configopt)

Parameters:
Name Type Attributes Description
config Object <optional>
Properties
Name Type Attributes Default Description
logging Boolean <optional>
false

Display console log output during SteamVR input device detection

Properties:
Name Type Description
leftController Gamepad

the left SteamVR Gamepad or undefined if one has not yet been found

rightController Gamepad

the right SteamVR Gamepad or undefined if one has not yet been found

firstController Gamepad

the first SteamVR Gamepad or undefined if none have yet been found

leftControllerPromise Promise

a promise that resolves once the left SteamVR input device is found

rightControllerPromise Promise

a promise that resolves once the right SteamVR input device is found

firstControllerPromise Promise

a promise that resolves once any SteamVR input device is found

Extends

Members

type :string

The string name of this class. This is used for THREE.Object3D#getBehaviorByType.

Overrides:

Methods