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
+9 -2
View File
@@ -23,6 +23,7 @@
#include "driver/app_pacer.h"
#include "wivrn_connection.h"
#include "wivrn_controller.h"
#include "wivrn_hand_interaction.h"
#include "wivrn_hmd.h"
#include "wivrn_ipc.h"
#include "wivrn_packets.h"
@@ -105,8 +106,14 @@ class wivrn_session : public xrt_system_devices
};
wivrn_hmd hmd;
wivrn_controller left_hand;
wivrn_controller right_hand;
wivrn_controller left_controller;
int32_t left_controller_index;
wivrn_hand_interaction left_hand_interaction;
int32_t left_hand_interaction_index;
wivrn_controller right_controller;
int32_t right_controller_index;
wivrn_hand_interaction right_hand_interaction;
int32_t right_hand_interaction_index;
std::unique_ptr<wivrn_eye_tracker> eye_tracker;
std::unique_ptr<wivrn_fb_face2_tracker> fb_face2_tracker;
std::unique_ptr<wivrn_htc_face_tracker> htc_face_tracker;