From be5961c512a09e757e148b5700f62ee202147644 Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Tue, 18 Jul 2017 23:15:07 +0100 Subject: [PATCH] Exposed input hander in the pointer events --- v3/src/input/events/PointerDownEvent.js | 1 + v3/src/input/events/PointerOutEvent.js | 1 + v3/src/input/events/PointerOverEvent.js | 1 + v3/src/input/events/PointerUpEvent.js | 1 + 4 files changed, 4 insertions(+) diff --git a/v3/src/input/events/PointerDownEvent.js b/v3/src/input/events/PointerDownEvent.js index 9bc90d14e..ae77f9ded 100644 --- a/v3/src/input/events/PointerDownEvent.js +++ b/v3/src/input/events/PointerDownEvent.js @@ -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; diff --git a/v3/src/input/events/PointerOutEvent.js b/v3/src/input/events/PointerOutEvent.js index c15541b1d..cf5efcb41 100644 --- a/v3/src/input/events/PointerOutEvent.js +++ b/v3/src/input/events/PointerOutEvent.js @@ -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; diff --git a/v3/src/input/events/PointerOverEvent.js b/v3/src/input/events/PointerOverEvent.js index f79310f9a..932ab41c4 100644 --- a/v3/src/input/events/PointerOverEvent.js +++ b/v3/src/input/events/PointerOverEvent.js @@ -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; diff --git a/v3/src/input/events/PointerUpEvent.js b/v3/src/input/events/PointerUpEvent.js index 07e71f892..7e5e6f301 100644 --- a/v3/src/input/events/PointerUpEvent.js +++ b/v3/src/input/events/PointerUpEvent.js @@ -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;