From d54c48973860ae9900a8cd3e270b77dd9f35c558 Mon Sep 17 00:00:00 2001 From: Christoph Haag Date: Mon, 20 Sep 2021 00:27:51 +0200 Subject: [PATCH] st/oxr: Enumerate outputs too in xrEnumerateBoundSourcesForAction Fixes #118 --- src/xrt/state_trackers/oxr/oxr_input.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/xrt/state_trackers/oxr/oxr_input.c b/src/xrt/state_trackers/oxr/oxr_input.c index 9bf8c70ad..b75ff9d52 100644 --- a/src/xrt/state_trackers/oxr/oxr_input.c +++ b/src/xrt/state_trackers/oxr/oxr_input.c @@ -1563,6 +1563,11 @@ oxr_action_enumerate_bound_sources(struct oxr_logger *log, for (uint32_t i = 0; i < act_attached->X.num_inputs; i++) { \ add_path_to_set(temp, act_attached->X.inputs[i].bound_path, &num_paths); \ } \ + } \ + if (act_attached->X.num_outputs > 0) { \ + for (uint32_t i = 0; i < act_attached->X.num_outputs; i++) { \ + add_path_to_set(temp, act_attached->X.outputs[i].bound_path, &num_paths); \ + } \ } OXR_FOR_EACH_SUBACTION_PATH(ACCUMULATE_PATHS)