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 cursor is on the current screen
Parameters
None.
Return value
Condition
Return Value
(always)
number
Notes
Example
raylib.InitWindow800, 600, "Cursor On Screen Demo"whilenotraylib.WindowShouldCloseraylib.BeginDrawingraylib.ClearBackgroundcolor.whiteifraylib.IsCursorOnScreenthenraylib.DrawText"Cursor is on screen", 10, 10, 20, color.greenelseraylib.DrawText"Cursor is off screen", 10, 10, 20, color.redendifraylib.EndDrawingendwhileraylib.CloseWindow