Skip to content

Commit be5961c

Browse files
committed
Exposed input hander in the pointer events
1 parent 458d50d commit be5961c

4 files changed

Lines changed: 4 additions & 0 deletions

File tree

v3/src/input/events/PointerDownEvent.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ var PointerDownEvent = new Class({
1313

1414
this.pointer = pointer;
1515
this.gameObject = gameObject;
16+
this.input = gameObject.input;
1617

1718
this.x = gameObject.input.localX;
1819
this.y = gameObject.input.localY;

v3/src/input/events/PointerOutEvent.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ var PointerOutEvent = new Class({
1313

1414
this.pointer = pointer;
1515
this.gameObject = gameObject;
16+
this.input = gameObject.input;
1617

1718
this.x = gameObject.input.localX;
1819
this.y = gameObject.input.localY;

v3/src/input/events/PointerOverEvent.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ var PointerOverEvent = new Class({
1313

1414
this.pointer = pointer;
1515
this.gameObject = gameObject;
16+
this.input = gameObject.input;
1617

1718
this.x = gameObject.input.localX;
1819
this.y = gameObject.input.localY;

v3/src/input/events/PointerUpEvent.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ var PointerUpEvent = new Class({
1313

1414
this.pointer = pointer;
1515
this.gameObject = gameObject;
16+
this.input = gameObject.input;
1617

1718
this.x = gameObject.input.localX;
1819
this.y = gameObject.input.localY;

0 commit comments

Comments
 (0)