love.keyreleased not working
Posted: Wed Jul 02, 2014 8:40 am
Hi everyone,
I'm having some trouble with the "love.keyreleased" function and I don't have clue to what the problem is.
I litterally copy and pasted the example from the wiki in to my game but nothing happen.
I put this :
right below the love.update function, I tryed different keys, I tryed to print a text instead quitting but nothing.. It seems that the whole function isn't recognized..
Also i tryed the love.keypressed and that works fine..
Please help a noob
I'm having some trouble with the "love.keyreleased" function and I don't have clue to what the problem is.
I litterally copy and pasted the example from the wiki in to my game but nothing happen.
I put this :
Code: Select all
function love.keyreleased(key)
if key == "escape" then
love.event.quit()
end
end
Also i tryed the love.keypressed and that works fine..
Please help a noob