2018-03-24 19:35:16 +01:00
|
|
|
if (!this.entityLoaded) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!this.initialized) {
|
|
|
|
this.initialized = true;
|
|
|
|
}
|
|
|
|
|
2018-04-03 19:42:14 +02:00
|
|
|
GameLib.Event.Emit(
|
|
|
|
GameLib.Event.PLAY_AUDIO,
|
|
|
|
{
|
|
|
|
name : 'Audio - Click'
|
|
|
|
}
|
|
|
|
);
|
|
|
|
|
2018-03-24 19:38:22 +01:00
|
|
|
GameLib.Event.Emit(
|
|
|
|
GameLib.Event.MOUSE_DOWN,
|
|
|
|
{
|
|
|
|
event : {
|
|
|
|
offsetX : data.event.changedTouches[0].clientX,
|
|
|
|
offsetY : data.event.changedTouches[0].clientY,
|
|
|
|
target : data.event.target
|
|
|
|
}
|
|
|
|
}
|
|
|
|
)
|
2018-03-24 19:35:16 +01:00
|
|
|
|
|
|
|
//@ sourceURL=touchStart.js
|