mirror of
https://github.com/wassname/phaser.git
synced 2026-07-14 01:10:16 +08:00
Added the new Button game object and various other input and tilemap fixes.
This commit is contained in:
@@ -507,7 +507,6 @@ module Phaser {
|
||||
|
||||
if (this.inputObjects[index])
|
||||
{
|
||||
console.log('object removed from the input manager', index);
|
||||
this.inputObjects[index] = null;
|
||||
}
|
||||
|
||||
@@ -580,7 +579,10 @@ module Phaser {
|
||||
|
||||
for (var i = 0; i < this.totalTrackedObjects; i++)
|
||||
{
|
||||
this.inputObjects[i].input.reset();
|
||||
if (this.inputObjects[i] && this.inputObjects[i].input)
|
||||
{
|
||||
this.inputObjects[i].input.reset();
|
||||
}
|
||||
}
|
||||
|
||||
this.inputObjects.length = 0;
|
||||
|
||||
Reference in New Issue
Block a user