From 776a709de186441e8766642f4cb089d062c9daeb Mon Sep 17 00:00:00 2001 From: bjorn Date: Fri, 12 May 2023 14:30:47 +0100 Subject: [PATCH] nogame: quit on escape; --- etc/nogame.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/etc/nogame.lua b/etc/nogame.lua index 8ef883f7..da0da34e 100644 --- a/etc/nogame.lua +++ b/etc/nogame.lua @@ -36,3 +36,9 @@ function lovr.draw(pass) pass:setColor(.9, .9, .9, fade) pass:text('No game :(', -.005, subtitlePosition, -3, .15, 0, 0, 1, 0, nil, 'center', 'top') end + +function lovr.keypressed(key) + if key == 'escape' then + lovr.event.quit() + end +end