mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-05-30 19:01:43 +02:00
Disable tablet button on off hand (translation hand).
This commit is contained in:
parent
8f5a8d0caa
commit
08bc47d722
1 changed files with 2 additions and 2 deletions
|
@ -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().to(function (clicked) {
|
clickMapping.from(Controller.Standard.RightSecondaryThumb).peek().when(Controller.Hardware.Application.RightHandDominant).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().to(function (clicked) {
|
clickMapping.from(Controller.Standard.LeftSecondaryThumb).peek().when(Controller.Hardware.Application.LeftHandDominant).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