Skip to content

key_released

Check whether a release was observed in the current logical tick. Available as key_released after import_globals() or mv.input.key_released.

Parameters

  • name — A key name or a KEY_* constant.
if key_released(KEY_SPACE) then
print("released")
end

Related: key, key_pressed.

See the keyboard guide for more examples and limits.