Input Handler mostly restored

This commit is contained in:
Richard Davey
2013-09-08 13:23:21 +01:00
parent 78598ae54a
commit 90b1946c25
7 changed files with 831 additions and 40 deletions
+18
View File
@@ -365,6 +365,24 @@ Phaser.Pointer.prototype = {
this._highestRenderObject = -1;
this._highestInputPriorityID = -1;
// Just run through the linked list
if (this.game.input.interactiveItems.next)
{
var currentNode = this.game.input.interactiveItems.next;
do
{
if (currentNode['update'])
{
currentNode.update();
}
currentNode = currentNode.next;
}
while (currentNode != this.game.input.interactiveItems.next)
}
for (var i = 0; i < this.game.input.totalTrackedObjects; i++)
{
if (this.game.input.inputObjects[i] && this.game.input.inputObjects[i].input && this.game.input.inputObjects[i].input.checkPointerOver(this))