|
#define | ACCUMULATE_SUBACTION_PATHS(X) subaction_paths->X |= new_subaction_paths->X; |
|
#define | CACHE_TEARDOWN(X) oxr_action_cache_teardown(&(act_attached->X)); |
|
#define | IDENTIFY_PATH(X) |
|
#define | GET_POSE_INPUT(X) |
|
#define | PATH_CASE(NAME, NAMECAPS, PATH) |
|
#define | PROFILE_MEMBER(X) struct oxr_interaction_profile *X; |
|
#define | FIND_PROFILE(X) |
|
#define | BIND_SUBACTION(NAME, NAME_CAPS, PATH) |
|
#define | RESET_ANY(NAME) act_attached->any_pose_subaction_path.NAME = false; |
|
#define | POSE_ANY(NAME) |
|
#define | ACCUMULATE_PATHS(X) |
|
#define | ACCUMULATE_PATHS(X) relevant_subactionpath |= (other_act_set_attached->requested_subaction_paths.X && subaction_path->X); |
|
#define | BOOL_CHECK(NAME) oxr_state_update_bool(&active, &value, ×tamp, &act_attached->NAME.current); |
|
#define | VEC1_CHECK(NAME) oxr_state_update_vec1(&active, &value, ×tamp, &act_attached->NAME.current); |
|
#define | VEC2_CHECK(NAME) oxr_state_update_vec2(&active, &x, &y, &distance, ×tamp, &act_attached->NAME.current); |
|
#define | UPDATE_SELECT(X) |
|
#define | FIND_PROFILE(X) oxr_find_profile_for_device(log, sess, GET_XDEV_BY_ROLE(sess->sys, X), &profiles.X); |
|
#define | POPULATE_PROFILE(X) |
|
#define | POPULATE_PROFILE(X) |
|
#define | ACCUMULATE_REQUESTED(X) any_action_with_subactionpath |= subaction_paths.X && act_attached->act_ref->subaction_paths.X; |
|
#define | ACCUMULATE_PATHS(X) |
|
#define | OXR_ACTION_GET_XR_STATE_FROM_ACTION_STATE_COMMON(ACTION_STATE, DATA) |
|
#define | OXR_ACTION_GET_FILLER(TYPE) |
| This populates the internals of action get state functions. More...
|
|
#define | OXR_ACTION_RESET_XR_ACTION_STATE(data) |
| Clear the actual data members of the XrActionState* types, to have the correct return value in case of the action being not active. More...
|
|
#define | COMPUTE_ACTIVE(X) |
|
#define | SET_OUT_VIBRATION(X) |
|
#define | STOP_VIBRATION(X) |
|
|
static void | oxr_session_get_action_set_attachment (struct oxr_session *sess, XrActionSet actionSet, struct oxr_action_set_attachment **act_set_attached, struct oxr_action_set **act_set) |
|
static void | oxr_session_get_action_attachment (struct oxr_session *sess, uint32_t act_key, struct oxr_action_attachment **out_act_attached) |
|
static void | oxr_action_cache_update (struct oxr_logger *log, struct oxr_session *sess, uint32_t countActionSets, const XrActiveActionSet *actionSets, struct oxr_action_attachment *act_attached, struct oxr_action_cache *cache, int64_t time, struct oxr_subaction_paths *subaction_path, bool select) |
|
static void | oxr_action_attachment_update (struct oxr_logger *log, struct oxr_session *sess, uint32_t countActionSets, const XrActiveActionSet *actionSets, struct oxr_action_attachment *act_attached, int64_t time, struct oxr_subaction_paths subaction_paths) |
|
static void | oxr_action_bind_io (struct oxr_logger *log, struct oxr_sink_logger *slog, struct oxr_session *sess, const struct oxr_action_ref *act_ref, const uint32_t act_set_key, struct oxr_action_cache *cache, struct oxr_interaction_profile *profile, enum oxr_subaction_path subaction_path) |
|
void | oxr_action_set_attachment_teardown (struct oxr_action_set_attachment *act_set_attached) |
|
static void | oxr_action_set_ref_destroy_cb (struct oxr_refcounted *orc) |
|
static XrResult | oxr_action_set_destroy_cb (struct oxr_logger *log, struct oxr_handle_base *hb) |
|
XrResult | oxr_action_set_create (struct oxr_logger *log, struct oxr_instance *inst, const XrActionSetCreateInfo *createInfo, struct oxr_action_set **out_act_set) |
|
static void | oxr_action_ref_destroy_cb (struct oxr_refcounted *orc) |
|
static XrResult | oxr_action_destroy_cb (struct oxr_logger *log, struct oxr_handle_base *hb) |
|
XrResult | oxr_action_create (struct oxr_logger *log, struct oxr_action_set *act_set, const XrActionCreateInfo *createInfo, struct oxr_action **out_act) |
|
bool | oxr_classify_subaction_paths (struct oxr_logger *log, const struct oxr_instance *inst, uint32_t subaction_path_count, const XrPath *subaction_paths, struct oxr_subaction_paths *subaction_paths_out) |
|
XrResult | oxr_action_get_pose_input (struct oxr_session *sess, uint32_t act_key, const struct oxr_subaction_paths *subaction_paths_ptr, struct oxr_action_input **out_input) |
|
static bool | do_inputs (struct oxr_binding *binding_point, struct xrt_device *xdev, struct xrt_binding_profile *xbp, XrPath matched_path, struct oxr_action_input inputs[32], uint32_t *input_count) |
|
static bool | do_outputs (struct oxr_binding *binding_point, struct xrt_device *xdev, struct xrt_binding_profile *xbp, XrPath matched_path, struct oxr_action_output outputs[32], uint32_t *output_count) |
|
static bool | do_io_bindings (struct oxr_binding *binding_point, const struct oxr_action_ref *act_ref, struct xrt_device *xdev, struct xrt_binding_profile *xbp, XrPath matched_path, struct oxr_action_input inputs[32], uint32_t *input_count, struct oxr_action_output outputs[32], uint32_t *output_count) |
| Delegate to do_outputs or do_inputs depending on whether the action is output or input. More...
|
|
static struct xrt_binding_profile * | get_matching_binding_profile (struct oxr_interaction_profile *profile, struct xrt_device *xdev) |
|
static XrPath | get_matched_xrpath (struct oxr_binding *b, const struct oxr_action_ref *act) |
|
static void | get_binding (struct oxr_logger *log, struct oxr_sink_logger *slog, struct oxr_session *sess, const struct oxr_action_ref *act_ref, struct oxr_interaction_profile *profile, enum oxr_subaction_path subaction_path, struct oxr_action_input inputs[32], uint32_t *input_count, struct oxr_action_output outputs[32], uint32_t *output_count) |
|
static void | oxr_find_profiles_from_roles (struct oxr_logger *log, struct oxr_session *sess, struct oxr_profiles_per_subaction *out_profiles) |
|
static void | oxr_action_cache_stop_output (struct oxr_logger *log, struct oxr_session *sess, struct oxr_action_cache *cache) |
|
static bool | oxr_input_is_input_for_cache (struct oxr_action_input *action_input, struct oxr_action_cache *cache) |
|
static bool | oxr_input_is_bound_in_act_set (struct oxr_action_input *action_input, struct oxr_action_set_attachment *act_set_attached) |
|
static bool | oxr_input_supressed (struct oxr_session *sess, uint32_t countActionSets, const XrActiveActionSet *actionSets, struct oxr_subaction_paths *subaction_path, struct oxr_action_attachment *act_attached, struct oxr_action_input *action_input) |
|
static bool | oxr_input_combine_input (struct oxr_session *sess, uint32_t countActionSets, const XrActiveActionSet *actionSets, struct oxr_action_attachment *act_attached, struct oxr_subaction_paths *subaction_path, struct oxr_action_cache *cache, struct oxr_input_value_tagged *out_input, int64_t *out_timestamp, bool *out_is_active) |
|
static bool | oxr_state_equal_bool (const struct oxr_action_state *a, const struct oxr_action_state *b) |
|
static bool | oxr_state_equal_vec1 (const struct oxr_action_state *a, const struct oxr_action_state *b) |
|
static bool | oxr_state_equal_vec2 (const struct oxr_action_state *a, const struct oxr_action_state *b) |
|
static void | oxr_state_update_bool (bool *active, bool *value, XrTime *timestamp, const struct oxr_action_state *new_state) |
|
static void | oxr_state_update_vec1 (bool *active, float *value, XrTime *timestamp, const struct oxr_action_state *new_state) |
|
static void | oxr_state_update_vec2 (bool *active, float *x, float *y, float *distance, XrTime *timestamp, const struct oxr_action_state *new_state) |
|
static bool | oxr_action_populate_input_transform (struct oxr_logger *log, struct oxr_sink_logger *slog, struct oxr_session *sess, const struct oxr_action_ref *act_ref, struct oxr_action_input *action_input) |
| Try to produce a transform chain to convert the available input into the desired input type. More...
|
|
static bool | find_matching_dpad (struct oxr_logger *log, struct oxr_instance *inst, struct oxr_dpad_entry *dpad_entry, const char *bound_path_string, struct oxr_dpad_binding_modification **out_dpad_binding) |
| Find dpad settings in dpad_entry whose binding path is a prefix of bound_path_string . More...
|
|
static bool | oxr_action_populate_input_transform_dpad (struct oxr_logger *log, struct oxr_sink_logger *slog, struct oxr_session *sess, const struct oxr_action_ref *act_ref, struct oxr_dpad_entry *dpad_entry, enum oxr_dpad_region dpad_region, struct oxr_interaction_profile *profile, struct oxr_action_input *action_inputs, uint32_t action_input_count, uint32_t selected_input) |
| Try to produce a transform chain to create a dpad button from the selected input (potentially using other inputs like /force in the process). More...
|
|
static bool | get_dpad_region_from_path (struct oxr_logger *log, struct oxr_instance *inst, XrPath path, enum oxr_dpad_region *out_dpad_region) |
|
static size_t | oxr_handle_base_get_num_children (struct oxr_handle_base *hb) |
|
static void | oxr_clone_profiles_to_session (struct oxr_logger *log, struct oxr_instance *inst, struct oxr_session *sess) |
|
XrResult | oxr_session_attach_action_sets (struct oxr_logger *log, struct oxr_session *sess, const XrSessionActionSetsAttachInfo *bindInfo) |
|
XrResult | oxr_session_update_action_bindings (struct oxr_logger *log, struct oxr_session *sess) |
|
XrResult | oxr_action_sync_data (struct oxr_logger *log, struct oxr_session *sess, uint32_t countActionSets, const XrActiveActionSet *actionSets) |
|
static void | add_path_to_set (XrPath path_set[32], XrPath new_path, uint32_t *inout_path_count) |
|
XrResult | oxr_action_enumerate_bound_sources (struct oxr_logger *log, struct oxr_session *sess, uint32_t act_key, uint32_t sourceCapacityInput, uint32_t *sourceCountOutput, XrPath *sources) |
|
static void | get_xr_state_from_action_state_bool (struct oxr_instance *inst, struct oxr_action_state *state, XrActionStateBoolean *data) |
|
static void | get_xr_state_from_action_state_vec1 (struct oxr_instance *inst, struct oxr_action_state *state, XrActionStateFloat *data) |
|
static void | get_xr_state_from_action_state_vec2 (struct oxr_instance *inst, struct oxr_action_state *state, XrActionStateVector2f *data) |
|
XrResult | oxr_action_get_boolean (struct oxr_logger *log, struct oxr_session *sess, uint32_t act_key, struct oxr_subaction_paths subaction_paths, XrActionStateBoolean *data) |
|
XrResult | oxr_action_get_vector1f (struct oxr_logger *log, struct oxr_session *sess, uint32_t act_key, struct oxr_subaction_paths subaction_paths, XrActionStateFloat *data) |
|
XrResult | oxr_action_get_vector2f (struct oxr_logger *log, struct oxr_session *sess, uint32_t act_key, struct oxr_subaction_paths subaction_paths, XrActionStateVector2f *data) |
|
XrResult | oxr_action_get_pose (struct oxr_logger *log, struct oxr_session *sess, uint32_t act_key, struct oxr_subaction_paths subaction_paths, XrActionStatePose *data) |
|
static void | set_action_output_vibration (struct oxr_session *sess, struct oxr_action_cache *cache, int64_t stop, const XrHapticVibration *data) |
|
XrResult | oxr_action_apply_haptic_feedback (struct oxr_logger *log, struct oxr_session *sess, uint32_t act_key, struct oxr_subaction_paths subaction_paths, const XrHapticBaseHeader *hapticEvent) |
|
XrResult | oxr_action_stop_haptic_feedback (struct oxr_logger *log, struct oxr_session *sess, uint32_t act_key, struct oxr_subaction_paths subaction_paths) |
|