mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-22 19:18:31 +00:00
Added bool IsCursorOnScreen(void). (#1262)
- The Mouse struct already stores cursorOnScreen. This function simply exposes it to the usage code.
This commit is contained in:
@@ -1318,6 +1318,12 @@ void DisableCursor(void)
|
||||
CORE.Input.Mouse.cursorHidden = true;
|
||||
}
|
||||
|
||||
// Check if cursor is on the current screen.
|
||||
bool IsCursorOnScreen(void)
|
||||
{
|
||||
return CORE.Input.Mouse.cursorOnScreen;
|
||||
}
|
||||
|
||||
// Set background color (framebuffer clear color)
|
||||
void ClearBackground(Color color)
|
||||
{
|
||||
|
Reference in New Issue
Block a user