From f102c62ae723332fc073ddffe96a57b92ee22419 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Sun, 23 Feb 2025 20:55:11 +0100 Subject: [PATCH] Always expose palm pose Same as grip if the headset doesn't support it --- server/driver/wivrn_controller.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/server/driver/wivrn_controller.cpp b/server/driver/wivrn_controller.cpp index 70e96023..603dfce1 100644 --- a/server/driver/wivrn_controller.cpp +++ b/server/driver/wivrn_controller.cpp @@ -597,9 +597,7 @@ wivrn_controller::wivrn_controller(int hand_id, SET_INPUT(TOUCH, AIM_POSE); SET_INPUT(TOUCH, GRIP_POSE); - - inputs[WIVRN_CONTROLLER_PALM_POSE].name = XRT_INPUT_GENERIC_PALM_POSE; - inputs[WIVRN_CONTROLLER_PALM_POSE].active = cnx->get_info().palm_pose; + SET_INPUT(GENERIC, PALM_POSE); if (auto grip_surface = configuration::read_user_configuration().grip_surface) { @@ -611,7 +609,11 @@ wivrn_controller::wivrn_controller(int hand_id, palm.set_derived(&grip, offset, true); cnx->set_enabled(palm.device, false); - inputs[WIVRN_CONTROLLER_PALM_POSE].active = true; + } + else if (not cnx->get_info().palm_pose) + { + palm.set_derived(&grip, XRT_POSE_IDENTITY, false); + cnx->set_enabled(palm.device, false); } if (hand_id == 0)