diff --git a/client/hmd_traits.cpp b/client/hmd_traits.cpp index 612881c3..22c56df1 100644 --- a/client/hmd_traits.cpp +++ b/client/hmd_traits.cpp @@ -264,6 +264,13 @@ void hmd_traits::init() // Accepts OpenXR 1.1 but doesn't actually implement it max_openxr_api_version = XR_API_VERSION_1_0; + // The runtime auto-switches /user/hand/* between the controller profile and + // ext/hand_interaction_ext based on its own hand-vs-controller heuristic, which + // flips repeatedly while a controller is actively held, dropping controller button + // input whenever hand interaction is briefly active. The runtime can only switch to + // a profile the app suggested bindings for, so withhold the extension entirely. + blacklisted_extensions.insert(XR_EXT_HAND_INTERACTION_EXTENSION_NAME); + // Doesn't handle additive blend, so needs specific ray model // Fixed in XR elite firmware version 2.0 bool need_htc_ray = true; diff --git a/server/driver/wivrn_controller.cpp b/server/driver/wivrn_controller.cpp index 21b60bf3..64094f00 100644 --- a/server/driver/wivrn_controller.cpp +++ b/server/driver/wivrn_controller.cpp @@ -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;