mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-16 03:45:24 +00:00
st/oxr: reset any_pose_subaction_path before update
This commit is contained in:
parent
fd9795b4de
commit
36d5d4224c
|
@ -5,6 +5,7 @@
|
|||
* @file
|
||||
* @brief Holds input related functions.
|
||||
* @author Jakob Bornecrantz <jakob@collabora.com>
|
||||
* @author Korcan Hussein <korcan.hussein@collabora.com>
|
||||
* @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; \
|
||||
|
|
Loading…
Reference in a new issue