mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Pressing escape now exits the nogame screen.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user