Top |
OpenVRAction * openvr_action_new_from_type_url (OpenVRActionSet *action_set
,OpenVRActionType type
,char *url
);
OpenVRAction * openvr_action_new_from_url (OpenVRActionSet *action_set
,char *url
);
gboolean openvr_action_trigger_haptic (OpenVRAction *self
,float start_seconds_from_now
,float duration_seconds
,float frequency
,float amplitude
);
OpenVRActionType
openvr_action_get_action_type (OpenVRAction *self
);
gboolean
openvr_action_poll_pose_next_frame (OpenVRAction *self
);
gboolean openvr_action_poll_pose_secs_from_now (OpenVRAction *self
,float secs
);
typedef struct { gboolean active; graphene_vec3_t state; graphene_vec3_t delta; guint64 controller_handle; gfloat time; } OpenVRAnalogEvent;
Analog event.
gboolean |
Whether or not this action is currently available to be bound in the active action set. |
|
graphene_vec3_t |
A graphene_vec3_t analog state. |
|
graphene_vec3_t |
State delta since last event. |
|
guint64 |
The controller identifier. |
|
gfloat |
The time of the event. |
typedef struct { gboolean active; gboolean state; gboolean changed; guint64 controller_handle; gfloat time; } OpenVRDigitalEvent;
Digital event.
“analog-event”
signalvoid user_function (OpenVRAction *openvraction, GdkEvent *arg1, gpointer user_data)
Flags: Run Last
“digital-event”
signalvoid user_function (OpenVRAction *openvraction, GdkEvent *arg1, gpointer user_data)
Flags: Run Last
“pose-event”
signalvoid user_function (OpenVRAction *openvraction, GdkEvent *arg1, gpointer user_data)
Flags: Run First