Does the love.keyreleased(key) function the same as love.keyboard.isDown?
For example, can I declare:
function love.update()
if love.keyreleased("left") then
hero = heroLeft
end
end
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
love.keyreleasedis a callback function. It’s not a function you are supposed to call. It’s a function you register with the system that takes a key. The system will call it whenever a key is released.