openxr: fix triple-click bindings on left hand reacting to the wrong hand

This commit is contained in:
Torge Matthies
2024-07-23 01:17:23 +02:00
committed by galister
parent 9a928b1c0c
commit 5a45d4dd2f

View File

@@ -371,7 +371,7 @@ macro_rules! add_custom {
if let Some(p) = to_path(&action.left, $instance) {
if is_bool(&action.left) {
if action.triple_click.unwrap_or(false) {
$bindings.push(xr::Binding::new(&$right.triple.action_bool, p));
$bindings.push(xr::Binding::new(&$left.triple.action_bool, p));
} else if action.double_click.unwrap_or(false) {
$bindings.push(xr::Binding::new(&$left.double.action_bool, p));
} else {
@@ -379,7 +379,7 @@ macro_rules! add_custom {
}
} else {
if action.triple_click.unwrap_or(false) {
$bindings.push(xr::Binding::new(&$right.triple.action_f32, p));
$bindings.push(xr::Binding::new(&$left.triple.action_f32, p));
} else if action.double_click.unwrap_or(false) {
$bindings.push(xr::Binding::new(&$left.double.action_f32, p));
} else {