-2

love.keyreleased(key)機能は と同じlove.keyboard.isDownですか?

たとえば、次のように宣言できますか。

function love.update()

    if love.keyreleased("left") then
            hero = heroLeft
    end
end     
4

2 に答える 2

6

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.

于 2012-02-21T02:48:01.103 に答える