mirror of
https://github.com/overte-org/overte.git
synced 2025-04-23 14:53:33 +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) {
|
||||
// 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;
|
||||
};
|
||||
|
||||
this.shouldStopTalking = function (controllerData) {
|
||||
var gripVal = controllerData.secondaryValues[this.hand];
|
||||
var gripVal = controllerData.secondaryValues[LEFT_HAND] && controllerData.secondaryValues[RIGHT_HAND];
|
||||
return (gripVal) ? false : true;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue