You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Check if a key has been released once
Parameters
Parameter
Default Value
Note
key
Return value
Condition
Return Value
(always)
number
Notes
Example
raylib.InitWindow800, 600, "Key Released Demo"msg="Hold SPACE and release it"whilenotraylib.WindowShouldCloseifraylib.IsKeyReleased(raylib.KEY_SPACE) thenmsg="Space released!"raylib.BeginDrawingraylib.ClearBackgroundcolor.whiteraylib.DrawTextmsg, 10, 10, 20, color.blackraylib.EndDrawingendwhileraylib.CloseWindow