include ext_hand_interaction bindings for the sake of including them

This commit is contained in:
galister
2025-12-21 12:26:09 +09:00
parent 52ffa0989c
commit 8e62e11d65
2 changed files with 26 additions and 4 deletions

View File

@@ -32,6 +32,11 @@ pub(super) fn init_xr() -> Result<(xr::Instance, xr::SystemId), anyhow::Error> {
} else { } else {
log::warn!("Missing EXT_hp_mixed_reality_controller extension."); 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 { if available_extensions.khr_composition_layer_cylinder {
enabled_extensions.khr_composition_layer_cylinder = true; enabled_extensions.khr_composition_layer_cylinder = true;
} else { } else {

View File

@@ -34,6 +34,23 @@
// do not mess with these, unless you know what you're doing // 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 // Fallback controller, intended for testing
{ {
profile: "/interaction_profiles/khr/simple_controller", profile: "/interaction_profiles/khr/simple_controller",
@@ -46,12 +63,12 @@
right: "/user/hand/right/output/haptic" right: "/user/hand/right/output/haptic"
}, },
click: { click: {
// left trigger is click // right trigger is click
left: "/user/hand/left/input/select/click", right: "/user/hand/right/input/select/click"
}, },
grab: { grab: {
// right trigger is grab // left trigger is grab
right: "/user/hand/right/input/select/click" left: "/user/hand/left/input/select/click",
}, },
show_hide: { show_hide: {
left: "/user/hand/left/input/menu/click" left: "/user/hand/left/input/menu/click"