Initial Commit: CC - Touch Start (mq0yhwbc41.js)

beta.r3js.org
-=yb4f310 2017-11-29 21:17:58 +01:00
parent fdcce6f26d
commit 66c4d9fbd6
1 changed files with 27 additions and 0 deletions

27
mq0yhwbc41.js Normal file
View File

@ -0,0 +1,27 @@
data.event.preventDefault();
var touches = Object.keys(data);
/**
* This code is rediculous - but it fixes the bug in ios where audio does not play
*/
/*GameLib.Event.Emit(
GameLib.Event.PLAY_AUDIO,
{
name : 'Audio - Flamethrower'
}
);
if (touches.length > 2) {
*/
GameLib.Event.Emit(GameLib.Event.MOUSE_DOWN);
/*} else {
GameLib.Event.Emit(
GameLib.Event.STOP_AUDIO,
{
name : 'Audio - Flamethrower'
}
);
}*/
//@ sourceURL=touchStart.js