OpenVRSystem

OpenVRSystem

Functions

Types and Values

Includes

#include <gxr.h>

Description

Functions

openvr_system_get_device_string ()

gchar *
openvr_system_get_device_string (TrackedDeviceIndex_t device_index,
                                 ETrackedDeviceProperty property);

openvr_system_get_eye_to_head_transform ()

graphene_matrix_t
openvr_system_get_eye_to_head_transform
                               (EVREye eye);

openvr_system_get_projection_matrix ()

graphene_matrix_t
openvr_system_get_projection_matrix (EVREye eye,
                                     float near,
                                     float far);

openvr_system_print_device_info ()

void
openvr_system_print_device_info (void);

openvr_system_get_hmd_pose ()

gboolean
openvr_system_get_hmd_pose (graphene_matrix_t *pose);

VR_GetGenericInterface ()

intptr_t
VR_GetGenericInterface (const char *pchInterfaceVersion,
                        EVRInitError *peError);

VR_GetVRInitErrorAsEnglishDescription ()

const char *
VR_GetVRInitErrorAsEnglishDescription (EVRInitError error);

VR_GetVRInitErrorAsSymbol ()

const char *
VR_GetVRInitErrorAsSymbol (EVRInitError error);

VR_InitInternal ()

intptr_t
VR_InitInternal (EVRInitError *peError,
                 EVRApplicationType eType);

VR_IsHmdPresent ()

bool
VR_IsHmdPresent (void);

VR_IsRuntimeInstalled ()

bool
VR_IsRuntimeInstalled (void);

VR_ShutdownInternal ()

void
VR_ShutdownInternal (void);

ButtonMaskFromId ()

uint64_t
ButtonMaskFromId (EVRButtonId id);

openvr_input_error_string ()

const gchar *
openvr_input_error_string (EVRInputError err);

Types and Values

OpenVRPoseEvent

typedef struct {
  gboolean active;
  graphene_matrix_t pose;
  graphene_vec3_t velocity;
  graphene_vec3_t angular_velocity;
  gboolean valid;
  gboolean device_connected;
  guint64 controller_handle;
} OpenVRPoseEvent;

Pose event.

Members

gboolean active;

Whether or not this action is currently available to be bound in the active action set.

 

graphene_matrix_t pose;

The graphene_matrix_t pose.

 

graphene_vec3_t velocity;

Velocity

 

graphene_vec3_t angular_velocity;

Angular velocity.

 

gboolean valid;

Whether the pose is valid.

 

gboolean device_connected;

Whether the device is currently connected.

 

guint64 controller_handle;

The controller identifier.