mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 07:12:40 +02:00
Make Vive snap turn buttons lock teleport, also
This commit is contained in:
parent
bf733ded0f
commit
5328b48acc
1 changed files with 1 additions and 4 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Reference in a new issue