mirror of https://github.com/wayvr-org/wayvr.git
openxr: fix triple-click bindings on left hand reacting to the wrong hand
This commit is contained in:
parent
9a928b1c0c
commit
5a45d4dd2f
|
|
@ -371,7 +371,7 @@ macro_rules! add_custom {
|
||||||
if let Some(p) = to_path(&action.left, $instance) {
|
if let Some(p) = to_path(&action.left, $instance) {
|
||||||
if is_bool(&action.left) {
|
if is_bool(&action.left) {
|
||||||
if action.triple_click.unwrap_or(false) {
|
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) {
|
} else if action.double_click.unwrap_or(false) {
|
||||||
$bindings.push(xr::Binding::new(&$left.double.action_bool, p));
|
$bindings.push(xr::Binding::new(&$left.double.action_bool, p));
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -379,7 +379,7 @@ macro_rules! add_custom {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if action.triple_click.unwrap_or(false) {
|
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) {
|
} else if action.double_click.unwrap_or(false) {
|
||||||
$bindings.push(xr::Binding::new(&$left.double.action_f32, p));
|
$bindings.push(xr::Binding::new(&$left.double.action_f32, p));
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue