summaryrefslogtreecommitdiffhomepage
path: root/src/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core.c b/src/core.c
index 6ac24ded..e54c5559 100644
--- a/src/core.c
+++ b/src/core.c
@@ -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)
{