Skip to content

isKeyReleased

Checks if a keyboard key was just released this frame.

Syntax

lua
Ham.isKeyReleased(key)

Parameters

NameTypeDescription
keyintegerImGui key code

Returns

  • boolean - true if the key was just released

Example

lua
if Ham.isKeyReleased(32) then -- Space
    print("Space was released")
end

See Also

Released under the ISC License.