mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Explicit check enumerated states instead of relying on order, per
feedback.
This commit is contained in:
parent
2c7642a367
commit
1e3b20b66d
1 changed files with 2 additions and 1 deletions
|
@ -361,8 +361,9 @@ function MyController(hand) {
|
|||
|
||||
var _this = this;
|
||||
|
||||
var suppressedIn2D = [STATE_OFF, STATE_SEARCHING, STATE_HOLD_SEARCHING];
|
||||
this.ignoreInput = function () {
|
||||
return (_this.state <= STATE_HOLD_SEARCHING) && isIn2DMode();
|
||||
return (-1 !== suppressedIn2D.indexOf(_this.state)) && isIn2DMode();
|
||||
};
|
||||
|
||||
this.update = function() {
|
||||
|
|
Loading…
Reference in a new issue