Initial Commit: CC - Touch Start (t3ks0fx53q.js)
parent
795e76b03f
commit
7bcd81f77b
|
@ -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
|
Loading…
Reference in New Issue