diff --git a/game.js b/game.js index 4142bb1..56cd9ba 100644 --- a/game.js +++ b/game.js @@ -7,7 +7,7 @@ var userClickedPattern = []; var started = false; var level = 0; -$(document).keypress(function() { +$(document).on("keypress touchstart", function() { if (!started) { $("#level-title").text("Level " + level); nextSequence(); @@ -89,4 +89,4 @@ function startOver(){ started=false; gamePattern=[]; level=0; -} \ No newline at end of file +}