mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 05:24:35 +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) {
|
function Teleporter(hand) {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
this.hand = hand;
|
this.hand = hand;
|
||||||
|
|
||||||
this.buttonValue = 0;
|
this.buttonValue = 0;
|
||||||
this.disabled = false; // used by the 'Hifi-Teleport-Disabler' message handler
|
this.disabled = false; // used by the 'Hifi-Teleport-Disabler' message handler
|
||||||
this.active = false;
|
this.active = false;
|
||||||
|
@ -197,7 +196,7 @@ Script.include("/~/system/libraries/controllers.js");
|
||||||
|
|
||||||
this.axisButtonChangeX = function (value) {
|
this.axisButtonChangeX = function (value) {
|
||||||
if (value !== 0) {
|
if (value !== 0) {
|
||||||
_this.buttonStateX = value;
|
_this.axisButtonStateX = value;
|
||||||
} else {
|
} else {
|
||||||
// Delay direction button release until after teleport possibly pressed.
|
// Delay direction button release until after teleport possibly pressed.
|
||||||
Script.setTimeout(function () {
|
Script.setTimeout(function () {
|
||||||
|
|
Loading…
Reference in a new issue