diff options
author | David McMackins II <contact@mcmackins.org> | 2017-08-31 07:32:09 -0500 |
---|---|---|
committer | David McMackins II <contact@mcmackins.org> | 2017-08-31 07:32:09 -0500 |
commit | b0a8a67b895e03b095bb897d7b7a89193b130d65 (patch) | |
tree | 1b4a914fb547ff0c346f9411a8a96c931aa8e7d9 | |
parent | 959c05abc9e46eb78ea29cccb6bbbdbf74e89698 (diff) |
Only quit game on real key press
-rw-r--r-- | mainmenustate.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mainmenustate.lua b/mainmenustate.lua index 321fc58..a8a661f 100644 --- a/mainmenustate.lua +++ b/mainmenustate.lua @@ -84,7 +84,7 @@ function MainMenuState:__init() end function MainMenuState:keypressed(key, isrepeat) - if key == 'escape' then + if key == 'escape' and not isrepeat then love.event.quit() end end |