diff options
| author | ChrisDill <[email protected]> | 2020-05-26 10:59:25 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-05-26 11:59:25 +0200 |
| commit | aff47d156474afc5f0e7e0d8b5ce61c013d470b3 (patch) | |
| tree | 273417e0e9903edbaa9cdec264e54cc99e5033b0 /src/core.c | |
| parent | ae334e9a6eae5e991c04d6baef890485095773e4 (diff) | |
| download | raylib-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.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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) { |
