Pressing escape now exits the nogame screen.

This commit is contained in:
Alex Szpakowski
2015-12-14 11:54:09 -04:00
parent c73fb2ef98
commit ed0ec611b9
2 changed files with 14 additions and 0 deletions
+6
View File
@@ -975,6 +975,12 @@ function love.nogame()
g_entities.toast:center()
end
function love.keypressed(key)
if key == "escape" then
love.event.quit()
end
end
function love.keyreleased(key)
if key == "f" then
local is_fs = love.window.getFullscreen()