mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 21:24:09 +00:00
Exposed input hander in the pointer events
This commit is contained in:
parent
458d50d20b
commit
be5961c512
4 changed files with 4 additions and 0 deletions
|
@ -13,6 +13,7 @@ var PointerDownEvent = new Class({
|
|||
|
||||
this.pointer = pointer;
|
||||
this.gameObject = gameObject;
|
||||
this.input = gameObject.input;
|
||||
|
||||
this.x = gameObject.input.localX;
|
||||
this.y = gameObject.input.localY;
|
||||
|
|
|
@ -13,6 +13,7 @@ var PointerOutEvent = new Class({
|
|||
|
||||
this.pointer = pointer;
|
||||
this.gameObject = gameObject;
|
||||
this.input = gameObject.input;
|
||||
|
||||
this.x = gameObject.input.localX;
|
||||
this.y = gameObject.input.localY;
|
||||
|
|
|
@ -13,6 +13,7 @@ var PointerOverEvent = new Class({
|
|||
|
||||
this.pointer = pointer;
|
||||
this.gameObject = gameObject;
|
||||
this.input = gameObject.input;
|
||||
|
||||
this.x = gameObject.input.localX;
|
||||
this.y = gameObject.input.localY;
|
||||
|
|
|
@ -13,6 +13,7 @@ var PointerUpEvent = new Class({
|
|||
|
||||
this.pointer = pointer;
|
||||
this.gameObject = gameObject;
|
||||
this.input = gameObject.input;
|
||||
|
||||
this.x = gameObject.input.localX;
|
||||
this.y = gameObject.input.localY;
|
||||
|
|
Loading…
Reference in a new issue