Callback function triggered when a keyboard key is released.
love.keyreleased( key, scancode )
KeyConstant keyScancode scancode Available since 0.10.0
Nothing.
Scancodes are keyboard layout-independent, so the scancode "w" will be used if the key in the same place as the "w" key on an American keyboard is released, no matter what the key is labelled or what the user's operating system settings are.
Exit the game when the player releases the Escape key, using love.event.quit.
function love.keyreleased(key)
if key == "escape" then
love.event.quit()
end
end
© 2006–2020 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/love.keyreleased