From c7fc144a667e0f75f680e1484eb8165c0d49d763 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 12 Aug 2025 17:36:17 +0200 Subject: [PATCH] Add simple controller binding for hand interaction --- server/driver/wivrn_hand_interaction.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/server/driver/wivrn_hand_interaction.cpp b/server/driver/wivrn_hand_interaction.cpp index def312f9..ff68e484 100644 --- a/server/driver/wivrn_hand_interaction.cpp +++ b/server/driver/wivrn_hand_interaction.cpp @@ -147,6 +147,12 @@ static xrt_binding_input_pair hand_interaction_input_binding[] = { {XRT_INPUT_HAND_GRASP_READY, XRT_INPUT_HAND_GRASP_READY}, }; +static xrt_binding_input_pair simple_input_binding[] = { + {XRT_INPUT_SIMPLE_SELECT_CLICK, XRT_INPUT_HAND_PINCH_VALUE}, + {XRT_INPUT_SIMPLE_GRIP_POSE, XRT_INPUT_HAND_GRIP_POSE}, + {XRT_INPUT_SIMPLE_AIM_POSE, XRT_INPUT_HAND_AIM_POSE}, +}; + static xrt_binding_profile wivrn_binding_profiles[] = { { .name = XRT_DEVICE_EXT_HAND_INTERACTION, @@ -155,6 +161,13 @@ static xrt_binding_profile wivrn_binding_profiles[] = { .outputs = nullptr, .output_count = 0, }, + { + .name = XRT_DEVICE_SIMPLE_CONTROLLER, + .inputs = simple_input_binding, + .input_count = std::size(simple_input_binding), + .outputs = nullptr, + .output_count = 0, + }, }; namespace