mirror of
https://github.com/photonstorm/phaser
synced 2024-11-17 10:18:42 +00:00
Catch poll zero
This commit is contained in:
parent
21b3f2a1ab
commit
520e2e621f
1 changed files with 7 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue