added IsCursorDisabled

This commit is contained in:
CrackedPixel 2025-10-19 13:10:52 -05:00
parent de8575b16e
commit 11e5761a88
2 changed files with 7 additions and 0 deletions

View File

@ -1027,6 +1027,7 @@ RLAPI bool IsCursorHidden(void); // Check if cu
RLAPI void EnableCursor(void); // Enables cursor (unlock cursor)
RLAPI void DisableCursor(void); // Disables cursor (lock cursor)
RLAPI bool IsCursorOnScreen(void); // Check if cursor is on the screen
RLAPI bool IsCursorDisabled(void); // Check if cursor is disabled (locked)
// Drawing-related functions
RLAPI void ClearBackground(Color color); // Set background color (framebuffer clear color)

View File

@ -889,6 +889,12 @@ bool IsCursorOnScreen(void)
return CORE.Input.Mouse.cursorOnScreen;
}
// Check if cursor is disabled (locked)
bool IsCursorDisabled(void)
{
return CORE.Input.Mouse.cursorLocked;
}
//----------------------------------------------------------------------------------
// Module Functions Definition: Screen Drawing
//----------------------------------------------------------------------------------