Skip to content

Commit

Permalink
openxr: fix triple-click bindings on left hand reacting to the wrong …
Browse files Browse the repository at this point in the history
…hand
  • Loading branch information
openglfreak committed Jul 22, 2024
1 parent 9a928b1 commit 3bfae7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/openxr/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -371,15 +371,15 @@ 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 {
$bindings.push(xr::Binding::new(&$left.single.action_bool, p));
}
} 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 {
Expand Down

0 comments on commit 3bfae7c

Please sign in to comment.