Remove Quest/simple_controller hack

Just don't suggest bindings for simple controller on Quest
This commit is contained in:
Patrick Nicolas
2025-07-02 21:55:27 +02:00
parent 2ba3d78cd4
commit 3a33adbd86
2 changed files with 17 additions and 48 deletions
+16
View File
@@ -929,6 +929,22 @@ void application::initialize_actions()
{
profile.available = utils::contains_all(xr_extensions, profile.required_extensions) and profile.min_version <= api_version and profile.max_version > api_version;
if (profile.profile_name.ends_with("khr/simple_controller"))
{
switch (guess_model())
{
// Quest hand tracking creates a fake khr/simple_controller when hand tracking
// is enabled, this messes with native hand tracking
case model::meta_quest_3:
case model::meta_quest_pro:
case model::meta_quest_3s:
case model::oculus_quest_2:
profile.available = false;
default:
break;
}
}
if (!profile.available)
continue;