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:
ChrisDill 2020-05-26 10:59:25 +01:00 committed by GitHub
parent ae334e9a6e
commit aff47d1564
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View file

@ -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)
{