include ext_hand_interaction bindings for the sake of including them
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user