Scene:action_released
Called from love.update when a player releases a key or button bound to an action.
A common usage of this callback is to forward calls to your scene’s InputSystem.
Usage
scene:action_released(player_index, action)
Arguments
| Name | Type | Description |
|---|---|---|
player_index | number | Number identifying the player who emitted the input. |
action | string | Action that was released (eg. "jump", "attack", etc.). |
Examples
local MyScene = Class("MyScene", crystal.Scene);
MyScene.action_released = function(self, player_index, action)
print("Player #" .. player_index .. " released " .. action .. ".");
end