typo in demo

"esc" isn't been used for the escape key, and wasn't in 0.9.2 either.
This commit is contained in:
/Fox --develop 2017-07-26 20:12:37 -07:00 committed by GitHub
parent 41a97c2e55
commit b2df6b9944

View File

@ -41,7 +41,7 @@ function love.update(dt)
local data = Prof:unpack() local data = Prof:unpack()
end end
function love.keypressed(key) function love.keypressed(key)
if key == "esc" then if key == "escape" then
ProfOn = not ProfOn ProfOn = not ProfOn
elseif key == ";" then elseif key == ";" then
drawRect = not drawRect drawRect = not drawRect