CR feedback

This commit is contained in:
Brad Hefta-Gaub 2015-10-23 17:14:59 -07:00
parent ed20e7d209
commit 090dc5409b

View file

@ -250,7 +250,6 @@ function MyController(hand, triggerAction) {
};
this.updateSmoothedTrigger = function () {
//var triggerValue = Controller.getValue(this.triggerAction); // this.rawTriggerValue; //
var triggerValue = this.rawTriggerValue;
// smooth out trigger value
this.triggerValue = (this.triggerValue * TRIGGER_SMOOTH_RATIO) +
@ -267,8 +266,7 @@ function MyController(hand, triggerAction) {
};
this.triggerSqueezed = function() {
var triggerValue = Controller.getValue(this.triggerAction); // this.rawTriggerValue; //
print("triggerSqueezed() triggerValue:" + triggerValue);
var triggerValue = this.rawTriggerValue;
return triggerValue > TRIGGER_ON_VALUE;
};