diff --git a/src/game-lib-system-input.js b/src/game-lib-system-input.js index 5831833..c695736 100644 --- a/src/game-lib-system-input.js +++ b/src/game-lib-system-input.js @@ -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 = {};