-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.IsCursorHidden
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Check if cursor is not visible
None.
| Condition | Return Value |
|---|---|
| (always) | number |
raylib.InitWindow 800, 600, "Cursor Hidden Demo"
raylib.HideCursor
while not raylib.WindowShouldClose
raylib.BeginDrawing
raylib.ClearBackground color.white
if raylib.IsCursorHidden then
raylib.DrawText "Cursor is hidden", 10, 10, 20, color.red
else
raylib.DrawText "Cursor is visible", 10, 10, 20, color.green
end if
raylib.EndDrawing
end while
raylib.CloseWindow