mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-08 10:48:45 +02:00
Merge branch 'ptt' into pushToTalk
This commit is contained in:
commit
b94b6d06a2
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