Make Vive snap turn buttons lock teleport, also

This commit is contained in:
David Rowe 2018-08-17 09:09:11 +12:00
parent bf733ded0f
commit 5328b48acc

View file

@ -197,10 +197,7 @@ Script.include("/~/system/libraries/controllers.js");
this.axisButtonChangeX = function (value) {
if (value !== 0) {
// Don't lock right hand's x-axis buttons if snap turn.
if (_this.hand === LEFT_HAND || !Controller.getValue(Controller.Hardware.Application.SnapTurn)) {
_this.buttonStateX = value;
}
_this.buttonStateX = value;
} else {
// Delay direction button release until after teleport possibly pressed.
Script.setTimeout(function () {