From 36d5d4224c1b69d4d32ca440be9b6bc7acd330f8 Mon Sep 17 00:00:00 2001 From: Korcan Hussein Date: Fri, 8 Dec 2023 14:27:35 +0000 Subject: [PATCH] st/oxr: reset any_pose_subaction_path before update --- 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 5b3f7e017..bfbd93939 100644 --- a/src/xrt/state_trackers/oxr/oxr_input.c +++ b/src/xrt/state_trackers/oxr/oxr_input.c @@ -5,6 +5,7 @@ * @file * @brief Holds input related functions. * @author Jakob Bornecrantz + * @author Korcan Hussein * @ingroup oxr_main */ @@ -784,6 +785,10 @@ oxr_action_attachment_bind(struct oxr_logger *log, */ if (act_ref->action_type == XR_ACTION_TYPE_POSE_INPUT) { +#define RESET_ANY(NAME) act_attached->any_pose_subaction_path.NAME = false; + OXR_FOR_EACH_VALID_SUBACTION_PATH(RESET_ANY) +#undef RESET_ANY + #define POSE_ANY(NAME) \ if ((act_ref->subaction_paths.NAME || act_ref->subaction_paths.any) && act_attached->NAME.input_count > 0) { \ act_attached->any_pose_subaction_path.NAME = true; \