Don't patch pinch_ext or pose_ext into non-controller interaction profiles

This commit is contained in:
Sapphire
2025-12-11 22:59:05 -06:00
parent 2057aff195
commit f340dc5940
+3 -1
View File
@@ -1062,7 +1062,9 @@ void application::initialize_actions()
}
// Patch profile to add pinch_ext/pose and poke_ext/pose
if (!profile.profile_name.ends_with("ext/hand_interaction_ext") && xr_instance.has_extension(XR_EXT_HAND_INTERACTION_EXTENSION_NAME))
if (xr_instance.has_extension(XR_EXT_HAND_INTERACTION_EXTENSION_NAME) //
and utils::contains(profile.input_sources, "/user/hand/left/input/grip/pose") //
and not utils::contains(profile.input_sources, "/user/hand/left/input/pinch_ext/pose"))
{
spdlog::info("Adding pinch_ext/pose for interaction profile {}", profile.profile_name);
profile.input_sources.push_back("/user/hand/left/input/pinch_ext/pose");