Exposed input hander in the pointer events

This commit is contained in:
Richard Davey 2017-07-18 23:15:07 +01:00
parent 458d50d20b
commit be5961c512
4 changed files with 4 additions and 0 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;