GxrAction

GxrAction

Functions

Signals

void analog-event Run Last
void digital-event Run Last
void pose-event Run First

Types and Values

Object Hierarchy

    GObject
    ╰── GxrAction

Includes

#include <gxr.h>

Description

Functions

gxr_action_new ()

GxrAction *
gxr_action_new (GxrContext *context);

gxr_action_new_from_type_url ()

GxrAction *
gxr_action_new_from_type_url (GxrContext *context,
                              GxrActionSet *action_set,
                              GxrActionType type,
                              char *url);

gxr_action_poll ()

gboolean
gxr_action_poll (GxrAction *self);

gxr_action_trigger_haptic ()

gboolean
gxr_action_trigger_haptic (GxrAction *self,
                           float start_seconds_from_now,
                           float duration_seconds,
                           float frequency,
                           float amplitude,
                           guint64 controller_handle);

gxr_action_get_action_type ()

GxrActionType
gxr_action_get_action_type (GxrAction *self);

gxr_action_get_action_set ()

GxrActionSet *
gxr_action_get_action_set (GxrAction *self);

gxr_action_get_url ()

gchar *
gxr_action_get_url (GxrAction *self);

gxr_action_set_action_type ()

void
gxr_action_set_action_type (GxrAction *self,
                            GxrActionType type);

gxr_action_set_action_set ()

void
gxr_action_set_action_set (GxrAction *self,
                           GxrActionSet *action_set);

gxr_action_set_url ()

void
gxr_action_set_url (GxrAction *self,
                    gchar *url);

gxr_action_emit_digital ()

void
gxr_action_emit_digital (GxrAction *self,
                         GxrDigitalEvent *event);

gxr_action_emit_analog ()

void
gxr_action_emit_analog (GxrAction *self,
                        GxrAnalogEvent *event);

gxr_action_emit_pose ()

void
gxr_action_emit_pose (GxrAction *self,
                      GxrPoseEvent *event);

gxr_action_set_digital_from_float_threshold ()

void
gxr_action_set_digital_from_float_threshold
                               (GxrAction *self,
                                float threshold);

gxr_action_set_digital_from_float_haptic ()

void
gxr_action_set_digital_from_float_haptic
                               (GxrAction *self,
                                GxrAction *haptic_action);

gxr_action_update_controllers ()

void
gxr_action_update_controllers (GxrAction *self);

gxr_action_get_num_bindings ()

uint32_t
gxr_action_get_num_bindings (GxrAction *self);

gxr_action_set_bindings ()

void
gxr_action_set_bindings (GxrAction *self,
                         XrActionSuggestedBinding *bindings);

gxr_action_get_handle ()

XrAction
gxr_action_get_handle (GxrAction *self);

gxr_action_get_haptic_action ()

GxrAction *
gxr_action_get_haptic_action (GxrAction *self);

Types and Values

GXR_TYPE_ACTION

#define GXR_TYPE_ACTION gxr_action_get_type ()

struct GxrActionClass

struct GxrActionClass {
  GObjectClass parent;
};

Members

GObjectClass parent;

The parent class

 

enum GxrActionType

The type of the GxrAction.

Members

GXR_ACTION_DIGITAL

A digital action.

 

GXR_ACTION_DIGITAL_FROM_FLOAT

A digital action constructed from float thresholds.

 

GXR_ACTION_VEC2F

An analog action with floats x,y.

 

GXR_ACTION_FLOAT

An analog action.

 

GXR_ACTION_POSE

A pose action.

 

GXR_ACTION_HAPTIC

A haptic action.

 

GxrAction

typedef struct _GxrAction GxrAction;

Signal Details

The “analog-event” signal

void
user_function (GxrAction *gxraction,
               GdkEvent  *arg1,
               gpointer   user_data)

Flags: Run Last


The “digital-event” signal

void
user_function (GxrAction *gxraction,
               GdkEvent  *arg1,
               gpointer   user_data)

Flags: Run Last


The “pose-event” signal

void
user_function (GxrAction *gxraction,
               GdkEvent  *arg1,
               gpointer   user_data)

Flags: Run First