return after release, duh

This commit is contained in:
Stephen Birarda 2016-12-20 14:30:08 -08:00
parent 8cd13eaedf
commit c3d736dd16

View file

@ -1088,13 +1088,15 @@ function MyController(hand) {
}; };
this.secondaryReleased = function() { this.secondaryReleased = function() {
return _this.rawSecondaryValue < BUMPER_ON_VALUE; var released = _this.rawSecondaryValue < BUMPER_ON_VALUE;
if (_this.state == STATE_HOLD) { if (released) {
// if we were holding something, the release of the // if we were holding something, the release of the
// secondary trigger releases it // secondary trigger releases it
_this.release(); _this.release();
} }
return released;
}; };
// this.triggerOrsecondarySqueezed = function () { // this.triggerOrsecondarySqueezed = function () {