Make hand interaction a different xdev

* Don't override hands from other drivers on interaction profile change

* Rename *_hand to *_controller

* Fix derived pose and tracking control desync with hand interaction

* Reset pose history on switch from hand interaction, code cleanup
This commit is contained in:
Sapphire
2025-07-09 10:33:32 +02:00
committed by xytovl
parent 8f0ca7b04c
commit c682f8cd9f
9 changed files with 658 additions and 112 deletions
+3 -3
View File
@@ -315,7 +315,7 @@ void scenes::stream::tracking()
}
}
auto enabled = [this](const to_headset::tracking_control & control, device_id id) -> bool {
auto enabled = [](const to_headset::tracking_control & control, device_id id) -> bool {
switch (id)
{
case device_id::HEAD:
@@ -330,7 +330,7 @@ void scenes::stream::tracking()
case device_id::LEFT_PINCH_POSE:
case device_id::LEFT_POKE: {
const auto tracking_id = id == device_id::LEFT_PINCH_POSE ? tid::left_pinch : tid::left_poke;
return control.enabled[size_t(tracking_id)] and interaction_profiles[0].load() == interaction_profile::ext_hand_interaction_ext;
return control.enabled[size_t(tracking_id)];
}
case device_id::RIGHT_AIM:
return control.enabled[size_t(tid::right_aim)];
@@ -341,7 +341,7 @@ void scenes::stream::tracking()
case device_id::RIGHT_PINCH_POSE:
case device_id::RIGHT_POKE: {
const auto tracking_id = id == device_id::RIGHT_PINCH_POSE ? tid::right_pinch : tid::right_poke;
return control.enabled[size_t(tracking_id)] and interaction_profiles[1].load() == interaction_profile::ext_hand_interaction_ext;
return control.enabled[size_t(tracking_id)];
}
default:
break;