Difference between revisions of "love.keyreleased"

(removed in 0.9.0)
Line 1: Line 1:
 
Callback function triggered when a key is released.
 
Callback function triggered when a key is released.
 
Unlike [[love.keypressed]], love.keyreleased does not have an unicode argument because those characters are only generated when keys are pressed.
 
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===

Revision as of 10:53, 7 June 2015

Callback function triggered when a key is released.

Function

Synopsis

love.keyreleased( key )

Arguments

KeyConstant key
Character of the key released.

Returns

Nothing.

Examples

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

See Also


Other Languages