play dummy audio for touch devices
parent
87e9753e1c
commit
102bf7fc6a
|
@ -21,6 +21,8 @@ GameLib.System.Input = function(
|
|||
|
||||
this.sensitivityCounter = 0;
|
||||
|
||||
this.playAudio = true;
|
||||
|
||||
this.editorControls = [];
|
||||
this.orbitControls = [];
|
||||
this.firstPersonControls = [];
|
||||
|
@ -978,6 +980,18 @@ GameLib.System.Input.prototype.onKeyboardKeyDown = function(event) {
|
|||
|
||||
GameLib.System.Input.prototype.onTouchStart = function(event) {
|
||||
|
||||
if (this.playAudio) {
|
||||
|
||||
GameLib.Event.Emit(
|
||||
GameLib.Event.PLAY_AUDIO,
|
||||
{
|
||||
name : 'Audio - Dummy'
|
||||
}
|
||||
);
|
||||
|
||||
this.playAudio = false;
|
||||
}
|
||||
|
||||
this.sensitivityCounter = 0;
|
||||
|
||||
this.touches = {};
|
||||
|
|
Loading…
Reference in New Issue