mirror of
https://github.com/overte-org/overte.git
synced 2025-04-11 13:42:38 +02:00
Fix Vive left/right buttons not disabling teleport
This commit is contained in:
parent
5328b48acc
commit
26576fa760
1 changed files with 1 additions and 2 deletions
|
@ -116,7 +116,6 @@ Script.include("/~/system/libraries/controllers.js");
|
|||
function Teleporter(hand) {
|
||||
var _this = this;
|
||||
this.hand = hand;
|
||||
|
||||
this.buttonValue = 0;
|
||||
this.disabled = false; // used by the 'Hifi-Teleport-Disabler' message handler
|
||||
this.active = false;
|
||||
|
@ -197,7 +196,7 @@ Script.include("/~/system/libraries/controllers.js");
|
|||
|
||||
this.axisButtonChangeX = function (value) {
|
||||
if (value !== 0) {
|
||||
_this.buttonStateX = value;
|
||||
_this.axisButtonStateX = value;
|
||||
} else {
|
||||
// Delay direction button release until after teleport possibly pressed.
|
||||
Script.setTimeout(function () {
|
||||
|
|
Loading…
Reference in a new issue