summaryrefslogtreecommitdiffhomepage
path: root/src/core.c
diff options
context:
space:
mode:
authorChrisDill <[email protected]>2020-05-26 10:59:25 +0100
committerGitHub <[email protected]>2020-05-26 11:59:25 +0200
commitaff47d156474afc5f0e7e0d8b5ce61c013d470b3 (patch)
tree273417e0e9903edbaa9cdec264e54cc99e5033b0 /src/core.c
parentae334e9a6eae5e991c04d6baef890485095773e4 (diff)
downloadraylib-aff47d156474afc5f0e7e0d8b5ce61c013d470b3.tar.gz
raylib-aff47d156474afc5f0e7e0d8b5ce61c013d470b3.zip
Added bool IsCursorOnScreen(void). (#1262)
- The Mouse struct already stores cursorOnScreen. This function simply exposes it to the usage code.
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)
{