Browse Source

Add IsCursorEnabled

pull/5419/head
sirsegv 2 months ago
committed by GitHub
parent
commit
737f00ef81
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      src/rcore.c

+ 6
- 0
src/rcore.c View File

@ -853,6 +853,12 @@ bool IsCursorHidden(void)
return CORE.Input.Mouse.cursorHidden;
}
// Check if cursor is enabled (unlocked)
bool IsCursorEnabled(void)
{
return !CORE.Input.Mouse.cursorLocked;
}
// Check if cursor is on the current screen
bool IsCursorOnScreen(void)
{

Loading…
Cancel
Save