mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 19:56:44 +02:00
Merge branch 'pushToTalk' of https://github.com/wayne-chen/hifi into pushToTalk
This commit is contained in:
commit
44674d4baf
1 changed files with 2 additions and 1 deletions
|
@ -25,12 +25,13 @@ 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[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