add quit button

This commit is contained in:
Jez Kabanoff 2015-08-19 18:23:07 +10:00
parent d1d2d1e5b6
commit 82492684d4
1 changed files with 2 additions and 0 deletions

View File

@ -605,6 +605,8 @@ end
function love.keypressed(key)
if key == 'r' and love.keyboard.isDown('lctrl') then
reload()
elseif key == 'q' and love.keyboard.isDown('lctrl') then
love.event.quit()
elseif key == 'f6' then
-- screenshot
local screenshot = love.graphics.newScreenshot(false)