-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.IsMouseButtonUp
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Check if a mouse button is NOT being pressed
| Parameter | Default Value | Note |
|---|---|---|
| button |
| Condition | Return Value |
|---|---|
| (always) | number |
raylib.InitWindow 800, 600, "Mouse Button Up Demo"
while not raylib.WindowShouldClose
raylib.BeginDrawing
raylib.ClearBackground color.white
if raylib.IsMouseButtonUp(raylib.MOUSE_BUTTON_LEFT) then
raylib.DrawText "Left button is up", 10, 10, 20, color.green
else
raylib.DrawText "Left button is held", 10, 10, 20, color.red
end if
raylib.EndDrawing
end while
raylib.CloseWindow