From 8e62e11d65a8bd6c836b5a98c17782562d86f805 Mon Sep 17 00:00:00 2001 From: galister <22305755+galister@users.noreply.github.com> Date: Sun, 21 Dec 2025 12:26:09 +0900 Subject: [PATCH] include ext_hand_interaction bindings for the sake of including them --- wlx-overlay-s/src/backend/openxr/helpers.rs | 5 ++++ .../src/backend/openxr/openxr_actions.json5 | 25 ++++++++++++++++--- 2 files changed, 26 insertions(+), 4 deletions(-) diff --git a/wlx-overlay-s/src/backend/openxr/helpers.rs b/wlx-overlay-s/src/backend/openxr/helpers.rs index f2881fc..a86d0df 100644 --- a/wlx-overlay-s/src/backend/openxr/helpers.rs +++ b/wlx-overlay-s/src/backend/openxr/helpers.rs @@ -32,6 +32,11 @@ pub(super) fn init_xr() -> Result<(xr::Instance, xr::SystemId), anyhow::Error> { } else { log::warn!("Missing EXT_hp_mixed_reality_controller extension."); } + if available_extensions.ext_hand_interaction { + enabled_extensions.ext_hand_interaction = true; + } else { + log::warn!("Missing EXT_hand_interaction extension."); + } if available_extensions.khr_composition_layer_cylinder { enabled_extensions.khr_composition_layer_cylinder = true; } else { diff --git a/wlx-overlay-s/src/backend/openxr/openxr_actions.json5 b/wlx-overlay-s/src/backend/openxr/openxr_actions.json5 index 63c5e77..bbc5d94 100644 --- a/wlx-overlay-s/src/backend/openxr/openxr_actions.json5 +++ b/wlx-overlay-s/src/backend/openxr/openxr_actions.json5 @@ -34,6 +34,23 @@ // do not mess with these, unless you know what you're doing [ + // Hand tracking + // { + // profile: "/interaction_profiles/ext/hand_interaction_ext", + // pose: { + // left: "/user/hand/left/input/aim/pose", + // right: "/user/hand/right/input/aim/pose" + // }, + // click: { + // left: "/user/hand/left/input/pinch_ext/value", + // right: "/user/hand/right/input/pinch_ext/value" + // }, + // grab: { + // left: "/user/hand/left/input/grasp_ext/value", + // right: "/user/hand/right/input/grasp_ext/value" + // }, + // }, + // Fallback controller, intended for testing { profile: "/interaction_profiles/khr/simple_controller", @@ -46,12 +63,12 @@ right: "/user/hand/right/output/haptic" }, click: { - // left trigger is click - left: "/user/hand/left/input/select/click", + // right trigger is click + right: "/user/hand/right/input/select/click" }, grab: { - // right trigger is grab - right: "/user/hand/right/input/select/click" + // left trigger is grab + left: "/user/hand/left/input/select/click", }, show_hide: { left: "/user/hand/left/input/menu/click"