Spelunx Cavern SDK
 
Loading...
Searching...
No Matches
Spelunx.Vive.Vive_Manager Class Reference

Manages connection to OpenVR and dispatches new poses and events. You should only have one of these in a scene. More...

Inheritance diagram for Spelunx.Vive.Vive_Manager:
Inheritance graph
Collaboration diagram for Spelunx.Vive.Vive_Manager:
Collaboration graph

Public Types

enum  UpdateMode { FixedUpdate , Update , LateUpdate , OnPreCull }
 

Public Member Functions

Dictionary< string, string > GetSteamVrTrackerBindings ()
 
bool ReadBindingsFromJson (string json)
 
bool ConvertBindingsToJson (out string json)
 
string GetStringProperty (ETrackedDeviceProperty prop, uint deviceId)
 

Static Public Member Functions

static bool InitializeTemporarySession ()
 
static void ExitTemporarySession ()
 

Public Attributes

ETrackingUniverseOrigin trackingUniverse = ETrackingUniverseOrigin.TrackingUniverseStanding
 
float displayFrequency = 0f
 
bool usePosePrediction = true
 
bool doUpdatePosesBeforeRendering = true
 
float vsyncToPhotonsSeconds = 0.03f
 
bool useSteamVrTrackerRoles = true
 

Properties

bool[] ConnectedDeviceIndices = new bool[OpenVR.k_unMaxTrackedDeviceCount] [get]
 
Dictionary< string, string > Bindings = new Dictionary<string, string>() [get, set]
 
Dictionary< string, string > SteamVrTrackerBindings = new Dictionary<string, string>() [get]
 

Detailed Description

Manages connection to OpenVR and dispatches new poses and events. You should only have one of these in a scene.

Definition at line 18 of file Vive_Manager.cs.

Member Enumeration Documentation

◆ UpdateMode

Enumerator
FixedUpdate 
Update 
LateUpdate 
OnPreCull 

Definition at line 20 of file Vive_Manager.cs.

Member Function Documentation

◆ ConvertBindingsToJson()

bool Spelunx.Vive.Vive_Manager.ConvertBindingsToJson ( out string  json)
inline

Definition at line 96 of file Vive_Manager.cs.

◆ ExitTemporarySession()

static void Spelunx.Vive.Vive_Manager.ExitTemporarySession ( )
inlinestatic

Definition at line 381 of file Vive_Manager.cs.

◆ GetSteamVrTrackerBindings()

Dictionary< string, string > Spelunx.Vive.Vive_Manager.GetSteamVrTrackerBindings ( )
inline

Definition at line 47 of file Vive_Manager.cs.

◆ GetStringProperty()

string Spelunx.Vive.Vive_Manager.GetStringProperty ( ETrackedDeviceProperty  prop,
uint  deviceId 
)
inline

Definition at line 110 of file Vive_Manager.cs.

◆ InitializeTemporarySession()

static bool Spelunx.Vive.Vive_Manager.InitializeTemporarySession ( )
inlinestatic

Definition at line 350 of file Vive_Manager.cs.

◆ ReadBindingsFromJson()

bool Spelunx.Vive.Vive_Manager.ReadBindingsFromJson ( string  json)
inline

Definition at line 82 of file Vive_Manager.cs.

Member Data Documentation

◆ displayFrequency

float Spelunx.Vive.Vive_Manager.displayFrequency = 0f

Definition at line 29 of file Vive_Manager.cs.

◆ doUpdatePosesBeforeRendering

bool Spelunx.Vive.Vive_Manager.doUpdatePosesBeforeRendering = true

Definition at line 31 of file Vive_Manager.cs.

◆ trackingUniverse

ETrackingUniverseOrigin Spelunx.Vive.Vive_Manager.trackingUniverse = ETrackingUniverseOrigin.TrackingUniverseStanding

Definition at line 28 of file Vive_Manager.cs.

◆ usePosePrediction

bool Spelunx.Vive.Vive_Manager.usePosePrediction = true

Definition at line 30 of file Vive_Manager.cs.

◆ useSteamVrTrackerRoles

bool Spelunx.Vive.Vive_Manager.useSteamVrTrackerRoles = true

Definition at line 33 of file Vive_Manager.cs.

◆ vsyncToPhotonsSeconds

float Spelunx.Vive.Vive_Manager.vsyncToPhotonsSeconds = 0.03f

Definition at line 32 of file Vive_Manager.cs.

Property Documentation

◆ Bindings

Dictionary<string, string> Spelunx.Vive.Vive_Manager.Bindings = new Dictionary<string, string>()
getset

Definition at line 36 of file Vive_Manager.cs.

◆ ConnectedDeviceIndices

bool [] Spelunx.Vive.Vive_Manager.ConnectedDeviceIndices = new bool[OpenVR.k_unMaxTrackedDeviceCount]
get

Definition at line 35 of file Vive_Manager.cs.

◆ SteamVrTrackerBindings

Dictionary<string, string> Spelunx.Vive.Vive_Manager.SteamVrTrackerBindings = new Dictionary<string, string>()
get

Definition at line 37 of file Vive_Manager.cs.


The documentation for this class was generated from the following file: