mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 16:41:02 +02:00
switch statement whitespace
This commit is contained in:
parent
2b3f6506b7
commit
64dc31cd61
1 changed files with 17 additions and 17 deletions
|
@ -308,24 +308,24 @@ function checkHardware() {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
switch (hardware) {
|
switch (hardware) {
|
||||||
case 'Hydra':
|
case 'Hydra':
|
||||||
makeHandToggle('R3', 'RightHand');
|
makeHandToggle('R3', 'RightHand');
|
||||||
makeHandToggle('L3', 'LeftHand');
|
makeHandToggle('L3', 'LeftHand');
|
||||||
|
|
||||||
mapToAction('R3', 'ReticleClick');
|
mapToAction('R3', 'ReticleClick');
|
||||||
mapToAction('L3', 'ReticleClick');
|
mapToAction('L3', 'ReticleClick');
|
||||||
mapToAction('R4', 'ContextMenu');
|
mapToAction('R4', 'ContextMenu');
|
||||||
mapToAction('L4', 'ContextMenu');
|
mapToAction('L4', 'ContextMenu');
|
||||||
break;
|
break;
|
||||||
case 'Vive':
|
case 'Vive':
|
||||||
// When touchpad click is NOT treated as movement, treat as left click
|
// When touchpad click is NOT treated as movement, treat as left click
|
||||||
makeHandToggle('RS', 'RightHand', makeViveWhen('RS', 'RX', 'RY'));
|
makeHandToggle('RS', 'RightHand', makeViveWhen('RS', 'RX', 'RY'));
|
||||||
makeHandToggle('LS', 'LeftHand', makeViveWhen('LS', 'LX', 'LY'));
|
makeHandToggle('LS', 'LeftHand', makeViveWhen('LS', 'LX', 'LY'));
|
||||||
clickMapping.from(Controller.Hardware.Vive.RS).when(makeViveWhen('RS', 'RX', 'RY')).to(Controller.Actions.ReticleClick);
|
clickMapping.from(Controller.Hardware.Vive.RS).when(makeViveWhen('RS', 'RX', 'RY')).to(Controller.Actions.ReticleClick);
|
||||||
clickMapping.from(Controller.Hardware.Vive.LS).when(makeViveWhen('LS', 'LX', 'LY')).to(Controller.Actions.ReticleClick);
|
clickMapping.from(Controller.Hardware.Vive.LS).when(makeViveWhen('LS', 'LX', 'LY')).to(Controller.Actions.ReticleClick);
|
||||||
mapToAction('RightApplicationMenu', 'ContextMenu');
|
mapToAction('RightApplicationMenu', 'ContextMenu');
|
||||||
mapToAction('LeftApplicationMenu', 'ContextMenu');
|
mapToAction('LeftApplicationMenu', 'ContextMenu');
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
clickMappings[hardware] = clickMapping;
|
clickMappings[hardware] = clickMapping;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue