mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 02:03:11 +02: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 _this = this;
|
||||||
|
|
||||||
|
var suppressedIn2D = [STATE_OFF, STATE_SEARCHING, STATE_HOLD_SEARCHING];
|
||||||
this.ignoreInput = function () {
|
this.ignoreInput = function () {
|
||||||
return (_this.state <= STATE_HOLD_SEARCHING) && isIn2DMode();
|
return (-1 !== suppressedIn2D.indexOf(_this.state)) && isIn2DMode();
|
||||||
};
|
};
|
||||||
|
|
||||||
this.update = function() {
|
this.update = function() {
|
||||||
|
|
Loading…
Reference in a new issue