diff --git a/src/input/InputPlugin.js b/src/input/InputPlugin.js index f28d07c44..41269111b 100644 --- a/src/input/InputPlugin.js +++ b/src/input/InputPlugin.js @@ -547,7 +547,13 @@ var InputPlugin = new Class({ return false; } - if (this.pollRate > 0) + var rate = this.pollRate; + + if (rate === -1) + { + return false; + } + else if (rate > 0) { this._pollTimer -= delta; @@ -562,10 +568,6 @@ var InputPlugin = new Class({ return false; } } - else - { - return false; - } // We got this far? Then we should poll for movement var manager = this.manager;