Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
love.keyreleased(key)機能は と同じlove.keyboard.isDownですか?
love.keyreleased(key)
love.keyboard.isDown
たとえば、次のように宣言できますか。
function love.update() if love.keyreleased("left") then hero = heroLeft end end
love.keyreleased is 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.
love.keyreleased