Class: VRDisplay

VRDisplay

VRDisplay represents a VR display. It's a wrapper for the native VRDisplay class, and provides some convienence methods to retrieve the controllers.


new VRDisplay()

Properties:
Name Type Description
onGamepadConnected Signal

A signal that is dispatched when a Gamepad associated with this VR display is connected. This only applies if controllers have hand information (otherwise, use the standard gamepad queries).

onGamepadDisconnected Signal

A signal that is dispatched when a Gamepad associated with this VR display has disconnected. This only applies if controllers have hand information (otherwise, use the standard gamepad queries).

Author:
  • derschmale <http://www.derschmale.com>

Members


displayId

The display id of the VR device.


displayName

The display name of the VR device.


gamepadLeft

The left handed Gamepad device associated with this display, if present.


gamepadRight

The right handed Gamepad device associated with this display, if present.


isPresenting

Indicates whether or not the display is currently presenting

Methods


exitPresent()

Stops presenting.