File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,15 +7,15 @@ var PointerDownEvent = new Class({
77
88 initialize :
99
10- function PointerDownEvent ( pointer , interactiveObject )
10+ function PointerDownEvent ( pointer , gameObject )
1111 {
1212 Event . call ( this , 'POINTER_DOWN_EVENT' ) ;
1313
1414 this . pointer = pointer ;
15- this . gameObject = interactiveObject . gameObject ;
15+ this . gameObject = gameObject ;
1616
17- this . x = interactiveObject . localX ;
18- this . y = interactiveObject . localY ;
17+ this . x = gameObject . input . localX ;
18+ this . y = gameObject . input . localY ;
1919 }
2020
2121} ) ;
Original file line number Diff line number Diff line change @@ -7,15 +7,15 @@ var PointerOutEvent = new Class({
77
88 initialize :
99
10- function PointerOutEvent ( pointer , interactiveObject )
10+ function PointerOutEvent ( pointer , gameObject )
1111 {
1212 Event . call ( this , 'POINTER_OUT_EVENT' ) ;
1313
1414 this . pointer = pointer ;
15- this . gameObject = interactiveObject . gameObject ;
15+ this . gameObject = gameObject ;
1616
17- this . x = interactiveObject . localX ;
18- this . y = interactiveObject . localY ;
17+ this . x = gameObject . input . localX ;
18+ this . y = gameObject . input . localY ;
1919 }
2020
2121} ) ;
Original file line number Diff line number Diff line change @@ -7,15 +7,15 @@ var PointerOverEvent = new Class({
77
88 initialize :
99
10- function PointerOverEvent ( pointer , interactiveObject )
10+ function PointerOverEvent ( pointer , gameObject )
1111 {
1212 Event . call ( this , 'POINTER_OVER_EVENT' ) ;
1313
1414 this . pointer = pointer ;
15- this . gameObject = interactiveObject . gameObject ;
15+ this . gameObject = gameObject ;
1616
17- this . x = interactiveObject . localX ;
18- this . y = interactiveObject . localY ;
17+ this . x = gameObject . input . localX ;
18+ this . y = gameObject . input . localY ;
1919 }
2020
2121} ) ;
Original file line number Diff line number Diff line change @@ -7,15 +7,15 @@ var PointerUpEvent = new Class({
77
88 initialize :
99
10- function PointerUpEvent ( pointer , interactiveObject )
10+ function PointerUpEvent ( pointer , gameObject )
1111 {
1212 Event . call ( this , 'POINTER_UP_EVENT' ) ;
1313
1414 this . pointer = pointer ;
15- this . gameObject = interactiveObject . gameObject ;
15+ this . gameObject = gameObject ;
1616
17- this . x = interactiveObject . localX ;
18- this . y = interactiveObject . localY ;
17+ this . x = gameObject . input . localX ;
18+ this . y = gameObject . input . localY ;
1919 }
2020
2121} ) ;
You can’t perform that action at this time.
0 commit comments