OpenVRContext

OpenVRContext

Functions

Signals

Types and Values

Object Hierarchy

    GObject
    ╰── OpenVRContext

Includes

#include <gxr.h>

Description

Functions

openvr_context_acknowledge_quit ()

void
openvr_context_acknowledge_quit (OpenVRContext *self);

openvr_context_get_instance ()

OpenVRContext *
openvr_context_get_instance (void);

openvr_context_get_model_list ()

GSList *
openvr_context_get_model_list (OpenVRContext *self);

openvr_context_is_hmd_present ()

gboolean
openvr_context_is_hmd_present (void);

openvr_context_is_installed ()

gboolean
openvr_context_is_installed (void);

openvr_context_is_valid ()

gboolean
openvr_context_is_valid (OpenVRContext *self);

openvr_context_poll_event ()

void
openvr_context_poll_event (OpenVRContext *self);

openvr_context_print_model_list ()

void
openvr_context_print_model_list (OpenVRContext *self);

openvr_context_set_system_keyboard_transform ()

void
openvr_context_set_system_keyboard_transform
                               (OpenVRContext *self,
                                graphene_matrix_t *transform);

openvr_context_show_system_keyboard ()

void
openvr_context_show_system_keyboard (OpenVRContext *self);

openvr_context_initialize ()

gboolean
openvr_context_initialize (OpenVRContext *self,
                           OpenVRAppType type);

openvr_context_is_another_scene_running ()

gboolean
openvr_context_is_another_scene_running
                               (void);

Types and Values

struct OpenVRContext

struct OpenVRContext;

enum OpenVRAppType

Type of OpenVR application.

Members

OPENVR_APP_SCENE

Scene application. Renders stereo viewports for the whole scene.

 

OPENVR_APP_OVERLAY

Overlay application. Renders mono buffers to overlays.

 

OPENVR_APP_BACKGROUND

Background application. Does not render anything.

 

enum OpenVRQuitReason

Reason why an quit signal was received

Members

VR_QUIT_SHUTDOWN

Runtime is shutting down.

 

VR_QUIT_APPLICATION_TRANSITION

A new scene application was opened.

 

VR_QUIT_PROCESS_QUIT

.VR_QUIT_PROCESS_QUIT

 

OpenVRQuitEvent

typedef struct {
  OpenVRQuitReason reason;
} OpenVRQuitEvent;

Event that is emitted when the application needs to quit.

Members


OpenVRDeviceIndexEvent

typedef struct {
  guint64 controller_handle;
} OpenVRDeviceIndexEvent;

Event that is emitted when a controller is activated or deaktivated. It carries the handle of a controller.

Members

guint64 controller_handle;

A guint64 controller handle.

 

OPENVR_TYPE_CONTEXT

#define OPENVR_TYPE_CONTEXT openvr_context_get_type()

Signal Details

The “device-activate-event” signal

void
user_function (OpenVRContext *openvrcontext,
               GdkEvent      *arg1,
               gpointer       user_data)

Flags: Run Last


The “device-deactivate-event” signal

void
user_function (OpenVRContext *openvrcontext,
               GdkEvent      *arg1,
               gpointer       user_data)

Flags: Run Last


The “device-update-event” signal

void
user_function (OpenVRContext *openvrcontext,
               GdkEvent      *arg1,
               gpointer       user_data)

Flags: Run Last


The “keyboard-close-event” signal

void
user_function (OpenVRContext *openvrcontext,
               gpointer       user_data)

Flags: Run First


The “keyboard-press-event” signal

void
user_function (OpenVRContext *openvrcontext,
               GdkEvent      *arg1,
               gpointer       user_data)

Flags: Run Last


The “quit-event” signal

void
user_function (OpenVRContext *openvrcontext,
               GdkEvent      *arg1,
               gpointer       user_data)

Flags: Run Last