fix(htc): stop interaction-profile flapping and fix squeeze-touch binding

Blacklist XR_EXT_hand_interaction for HTC so the runtime can't switch
/user/hand/* to ext/hand_interaction_ext mid-session, which drops
controller button input whenever that profile is briefly active.

Point the Focus3 squeeze/touch binding at XRT_INPUT_FRAME_SQUEEZE_TOUCH,
the name the device actually exposes for that slot, instead of a name
that's never set active.
This commit is contained in:
Jonathan Steffan
2026-10-05 09:36:37 +02:00
committed by xytovl
parent fc48b6155e
commit 59e4fb075e
2 changed files with 12 additions and 1 deletions
+5 -1
View File
@@ -475,7 +475,7 @@ xrt_binding_input_pair focus3_input_binding[] = {
{XRT_INPUT_VIVE_FOCUS3_B_CLICK, XRT_INPUT_TOUCH_B_CLICK},
{XRT_INPUT_VIVE_FOCUS3_SYSTEM_CLICK, XRT_INPUT_TOUCH_SYSTEM_CLICK},
{XRT_INPUT_VIVE_FOCUS3_SQUEEZE_CLICK, XRT_INPUT_VIVE_FOCUS3_SQUEEZE_CLICK},
{XRT_INPUT_VIVE_FOCUS3_SQUEEZE_TOUCH, XRT_INPUT_VIVE_FOCUS3_SQUEEZE_TOUCH},
{XRT_INPUT_VIVE_FOCUS3_SQUEEZE_TOUCH, XRT_INPUT_FRAME_SQUEEZE_TOUCH},
{XRT_INPUT_VIVE_FOCUS3_SQUEEZE_VALUE, XRT_INPUT_TOUCH_SQUEEZE_VALUE},
{XRT_INPUT_VIVE_FOCUS3_TRIGGER_CLICK, XRT_INPUT_INDEX_TRIGGER_CLICK},
{XRT_INPUT_VIVE_FOCUS3_TRIGGER_TOUCH, XRT_INPUT_TOUCH_TRIGGER_TOUCH},
@@ -899,6 +899,10 @@ void wivrn_controller::set_inputs(const from_headset::inputs & inputs, const clo
for (const auto & input: inputs.values)
{
U_LOG_D("wivrn_controller(%s) recv %s = %f",
device_type == XRT_DEVICE_TYPE_LEFT_HAND_CONTROLLER ? "left" : "right",
std::string(magic_enum::enum_name(input.id)).c_str(),
input.value);
// Gamepad inputs are handled by wivrn_gamepad
if (input.id >= device_id::GAMEPAD_MENU_CLICK)
continue;