mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 12:04:18 +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() {
|
||||
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
|
||||
// secondary trigger releases it
|
||||
_this.release();
|
||||
}
|
||||
|
||||
return released;
|
||||
};
|
||||
|
||||
// this.triggerOrsecondarySqueezed = function () {
|
||||
|
|
Loading…
Reference in a new issue