mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 13:49:12 +02:00
return after release, duh
This commit is contained in:
parent
8cd13eaedf
commit
c3d736dd16
1 changed files with 4 additions and 2 deletions
|
@ -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 () {
|
||||||
|
|
Loading…
Reference in a new issue