Move WindowShouldClose out of rcore

This commit is contained in:
michaelfiber 2023-09-14 13:20:24 -04:00
commit 2125da5926

View file

@ -1284,4 +1284,12 @@ void CloseWindow(void)
CORE.Window.ready = false;
TRACELOG(LOG_INFO, "Window closed successfully");
}
// Check if KEY_ESCAPE pressed or Close icon pressed
bool WindowShouldClose(void)
{
if (CORE.Window.ready) return CORE.Window.shouldClose;
else return true;
}