GxrAction

GxrAction

Functions

Signals

Types and Values

Object Hierarchy

    GObject
    ╰── GxrAction

Includes

#include <gxr.h>

Description

Functions

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);

Types and Values

GXR_TYPE_ACTION

#define GXR_TYPE_ACTION gxr_action_get_type()

struct GxrActionClass

struct GxrActionClass {
  GObjectClass parent;

  gboolean
  (*poll) (GxrAction *action);

  gboolean
  (*trigger_haptic) (GxrAction *action,
                     float start_seconds_from_now,
                     float duration_seconds,
                     float frequency,
                     float amplitude,
                     guint64 controller_handle);

  void
  (*set_digital_from_float_threshold) (GxrAction *self,
                                       float      threshold);

  void
  (*set_digital_from_float_haptic) (GxrAction *self,
                                    GxrAction *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