mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
add whens
This commit is contained in:
parent
a7ba4ce1f9
commit
82a8887275
1 changed files with 3 additions and 3 deletions
|
@ -17,9 +17,9 @@ function addTranslationToLeftStick() {
|
|||
function registerMappings() {
|
||||
mappingName = 'Hifi-AdvancedMovement-Dev-' + Math.random();
|
||||
advancedMapping = Controller.newMapping(mappingName);
|
||||
advancedMapping.from(Controller.Vive.LY).invert().to(Controller.Standard.LY);
|
||||
advancedMapping.from(Controller.Vive.LX).to(Controller.Standard.LX);
|
||||
advancedMapping.from(Controller.Vive.RY).invert().to(Standard.RY);
|
||||
advancedMapping.from(Controller.Vive.LY).when(Controller.Vive.LSY).invert().to(Controller.Standard.LY);
|
||||
advancedMapping.from(Controller.Vive.LX).when(Controller.Vive.LSX).to(Controller.Standard.LX);
|
||||
advancedMapping.from(Controller.Vive.RY).when(Controller.Vive.RSY).invert().to(Controller.Standard.RY);
|
||||
}
|
||||
|
||||
function removeTranslationFromLeftStick() {
|
||||
|
|
Loading…
Reference in a new issue