mirror of
https://github.com/love2d/love.git
synced 2026-08-19 12:14:20 +02:00
nogame screen: escape key quits love.
This commit is contained in:
@@ -3257,6 +3257,12 @@ function love.nogame()
|
||||
end
|
||||
end
|
||||
|
||||
function love.keypressed(key)
|
||||
if key == "escape" then
|
||||
love.event.quit()
|
||||
end
|
||||
end
|
||||
|
||||
function love.resize()
|
||||
create_world()
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user