mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-16 12:00:23 +02:00
Fix activation / deactivation criteria for PTT controller module.
This commit is contained in:
parent
88d8163b04
commit
24d6646e8d
1 changed files with 2 additions and 2 deletions
|
@ -25,12 +25,12 @@ Script.include("/~/system/libraries/controllers.js");
|
||||||
|
|
||||||
this.shouldTalk = function (controllerData) {
|
this.shouldTalk = function (controllerData) {
|
||||||
// Set up test against controllerData here...
|
// Set up test against controllerData here...
|
||||||
var gripVal = controllerData.secondaryValues[this.hand];
|
var gripVal = controllerData.secondaryValues[LEFT_HAND] && controllerData.secondaryValues[RIGHT_HAND];
|
||||||
return (gripVal) ? true : false;
|
return (gripVal) ? true : false;
|
||||||
};
|
};
|
||||||
|
|
||||||
this.shouldStopTalking = function (controllerData) {
|
this.shouldStopTalking = function (controllerData) {
|
||||||
var gripVal = controllerData.secondaryValues[this.hand];
|
var gripVal = controllerData.secondaryValues[LEFT_HAND] && controllerData.secondaryValues[RIGHT_HAND];
|
||||||
return (gripVal) ? false : true;
|
return (gripVal) ? false : true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue