switch statement whitespace

This commit is contained in:
Howard Stearns 2016-05-10 09:43:00 -07:00
parent 2b3f6506b7
commit 64dc31cd61

View file

@ -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;
} }