gxr-types

gxr-types

Types and Values

Includes

#include <gxr.h>

Description

Functions

Types and Values

GxrDigitalEvent

typedef struct {
  gboolean active;
  gboolean state;
  gboolean changed;
  GxrController *controller;
  gfloat time;
} GxrDigitalEvent;

Digital event.

Members

gboolean active;

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

 

gboolean state;

Pressed or released.

 

gboolean changed;

Whether the state has changed since last event.

 

GxrController *controller;

   

gfloat time;

The time of the event.

 

GxrAnalogEvent

typedef struct {
  gboolean active;
  graphene_vec3_t state;
  graphene_vec3_t delta;
  GxrController *controller;
  gfloat time;
} GxrAnalogEvent;

Analog event.

Members

gboolean active;

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

 

graphene_vec3_t state;

A graphene_vec3_t analog state.

 

graphene_vec3_t delta;

State delta since last event.

 

GxrController *controller;

   

gfloat time;

The time of the event.

 

GxrPoseEvent

typedef struct {
  gboolean active;
  graphene_matrix_t pose;
  graphene_vec3_t velocity;
  graphene_vec3_t angular_velocity;
  gboolean valid;
  gboolean device_connected;
  GxrController *controller;
} GxrPoseEvent;

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.

 

GxrController *controller;

   

GxrQuitEvent

typedef struct {
  GxrQuitReason reason;
} GxrQuitEvent;

Event that is emitted when the application needs to quit.

Members

GxrQuitReason reason;

The GxrQuitReason.

 

GxrPose

typedef struct {
  graphene_matrix_t transformation;
  gboolean is_valid;
} GxrPose;

A 4x4 matrix pose.

Members

graphene_matrix_t transformation;

The graphene_matrix_t.

 

gboolean is_valid;

Validity of the pose.