mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 23:17:02 +02:00
get lsy lsx rsy values
This commit is contained in:
parent
fc65d246ee
commit
514d6ec139
1 changed files with 6 additions and 3 deletions
|
@ -18,9 +18,12 @@ function registerMappings() {
|
||||||
mappingName = 'Hifi-AdvancedMovement-Dev-' + Math.random();
|
mappingName = 'Hifi-AdvancedMovement-Dev-' + Math.random();
|
||||||
advancedMapping = Controller.newMapping(mappingName);
|
advancedMapping = Controller.newMapping(mappingName);
|
||||||
var VIVE = Controller.Hardware.Vive;
|
var VIVE = Controller.Hardware.Vive;
|
||||||
advancedMapping.from(VIVE.LY).when(VIVE.LSY).invert().to(Controller.Standard.LY);
|
var LSY = Controller.getValue(VIVE.LSY);
|
||||||
advancedMapping.from(VIVE.LX).when(VIVE.LSX).to(Controller.Standard.LX);
|
var LSX = Controller.getValue(VIVE.LSX);
|
||||||
advancedMapping.from(VIVE.RY).when(VIVE.RSY).invert().to(Controller.Standard.RY);
|
var RSY = Controller.getValue(VIVE.RSY);
|
||||||
|
advancedMapping.from(VIVE.LY).when(LSY).invert().to(Controller.Standard.LY);
|
||||||
|
advancedMapping.from(VIVE.LX).when(LSX).to(Controller.Standard.LX);
|
||||||
|
advancedMapping.from(VIVE.RY).when(RSY).invert().to(Controller.Standard.RY);
|
||||||
}
|
}
|
||||||
|
|
||||||
function removeTranslationFromLeftStick() {
|
function removeTranslationFromLeftStick() {
|
||||||
|
|
Loading…
Reference in a new issue