From d5610f6fe62fc136c475e6258dcf03b0aaba1f4a Mon Sep 17 00:00:00 2001 From: galister <22305755+galister@users.noreply.github.com> Date: Thu, 6 Jun 2024 12:51:28 +0900 Subject: [PATCH] fix(openxr): haptics --- src/backend/openxr/input.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/openxr/input.rs b/src/backend/openxr/input.rs index 349fd26..0bc055f 100644 --- a/src/backend/openxr/input.rs +++ b/src/backend/openxr/input.rs @@ -393,7 +393,7 @@ fn suggest_bindings(instance: &xr::Instance, hands: &[&OpenXrHandSource; 2]) -> } } - if let Some(action) = profile.haptics { + if let Some(action) = profile.haptic { if let Some(p) = to_path(&action.left, instance) { bindings.push(xr::Binding::new(&hands[0].action_haptics, p)); } @@ -508,7 +508,7 @@ struct OpenXrActionConfProfile { click_modifier_middle: Option, move_mouse: Option, scroll: Option, - haptics: Option, + haptic: Option, } const DEFAULT_PROFILES: &str = include_str!("openxr_actions.json5");