From 737f00ef81d99393d7c741c79c3eab7911ac1f2a Mon Sep 17 00:00:00 2001 From: sirsegv <56238661+squidink7@users.noreply.github.com> Date: Sat, 20 Dec 2025 18:02:03 +0700 Subject: [PATCH] Add IsCursorEnabled --- src/rcore.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/rcore.c b/src/rcore.c index 1f47efcb9..174111280 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -853,6 +853,12 @@ bool IsCursorHidden(void) return CORE.Input.Mouse.cursorHidden; } +// Check if cursor is enabled (unlocked) +bool IsCursorEnabled(void) +{ + return !CORE.Input.Mouse.cursorLocked; +} + // Check if cursor is on the current screen bool IsCursorOnScreen(void) {