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 mouse button has been released once
Parameters
Parameter
Default Value
Note
button
Return value
Condition
Return Value
(always)
number
Notes
Example
raylib.InitWindow800, 600, "Mouse Button Released Demo"msg="Click and release the left button"whilenotraylib.WindowShouldCloseifraylib.IsMouseButtonReleased(raylib.MOUSE_BUTTON_LEFT) thenmsg="Left button released!"raylib.BeginDrawingraylib.ClearBackgroundcolor.whiteraylib.DrawTextmsg, 10, 10, 20, color.blackraylib.EndDrawingendwhileraylib.CloseWindow