mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-17 14:06:19 +02:00
Swap flying binding to other hand.
This commit is contained in:
parent
4301d74df5
commit
86ffa44771
2 changed files with 6 additions and 6 deletions
|
@ -43,12 +43,12 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
{ "from": "Standard.LeftSecondaryThumb",
|
{ "from": "Standard.LeftSecondaryThumb",
|
||||||
"when": [ "Application.Grounded", "Application.RightHandDominant" ],
|
"when": [ "Application.Grounded", "Application.LeftHandDominant" ],
|
||||||
"to": "Actions.Up"
|
"to": "Actions.Up"
|
||||||
},
|
},
|
||||||
|
|
||||||
{ "from": "Standard.LeftSecondaryThumb",
|
{ "from": "Standard.LeftSecondaryThumb",
|
||||||
"when": "Application.RightHandDominant",
|
"when": "Application.LeftHandDominant",
|
||||||
"to": "Actions.Up"
|
"to": "Actions.Up"
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -94,12 +94,12 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
{ "from": "Standard.RightSecondaryThumb",
|
{ "from": "Standard.RightSecondaryThumb",
|
||||||
"when": [ "Application.Grounded", "Application.LeftHandDominant" ],
|
"when": [ "Application.Grounded", "Application.RightHandDominant" ],
|
||||||
"to": "Actions.Up"
|
"to": "Actions.Up"
|
||||||
},
|
},
|
||||||
|
|
||||||
{ "from": "Standard.RightSecondaryThumb",
|
{ "from": "Standard.RightSecondaryThumb",
|
||||||
"when": "Application.LeftHandDominant",
|
"when": "Application.RightHandDominant",
|
||||||
"to": "Actions.Up"
|
"to": "Actions.Up"
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -291,7 +291,7 @@
|
||||||
var clickMapping = Controller.newMapping('tabletToggle-click');
|
var clickMapping = Controller.newMapping('tabletToggle-click');
|
||||||
var wantsMenu = 0;
|
var wantsMenu = 0;
|
||||||
clickMapping.from(function () { return wantsMenu; }).to(Controller.Actions.ContextMenu);
|
clickMapping.from(function () { return wantsMenu; }).to(Controller.Actions.ContextMenu);
|
||||||
clickMapping.from(Controller.Standard.RightSecondaryThumb).peek().when(Controller.Hardware.Application.RightHandDominant).to(function (clicked) {
|
clickMapping.from(Controller.Standard.RightSecondaryThumb).peek().when(Controller.Hardware.Application.LeftHandDominant).to(function (clicked) {
|
||||||
if (clicked) {
|
if (clicked) {
|
||||||
//activeHudPoint2d(Controller.Standard.RightHand);
|
//activeHudPoint2d(Controller.Standard.RightHand);
|
||||||
Messages.sendLocalMessage("toggleHand", Controller.Standard.RightHand);
|
Messages.sendLocalMessage("toggleHand", Controller.Standard.RightHand);
|
||||||
|
@ -299,7 +299,7 @@
|
||||||
wantsMenu = clicked;
|
wantsMenu = clicked;
|
||||||
});
|
});
|
||||||
|
|
||||||
clickMapping.from(Controller.Standard.LeftSecondaryThumb).peek().when(Controller.Hardware.Application.LeftHandDominant).to(function (clicked) {
|
clickMapping.from(Controller.Standard.LeftSecondaryThumb).peek().when(Controller.Hardware.Application.RightHandDominant).to(function (clicked) {
|
||||||
if (clicked) {
|
if (clicked) {
|
||||||
//activeHudPoint2d(Controller.Standard.LeftHand);
|
//activeHudPoint2d(Controller.Standard.LeftHand);
|
||||||
Messages.sendLocalMessage("toggleHand", Controller.Standard.LeftHand);
|
Messages.sendLocalMessage("toggleHand", Controller.Standard.LeftHand);
|
||||||
|
|
Loading…
Reference in a new issue