EnableEventWaiting and DisableEventWaiting.

This commit is contained in:
jussi
2024-02-25 21:02:11 +02:00
parent 47ed28b006
commit 625e4e0e4d
10 changed files with 148 additions and 37 deletions

View File

@@ -559,6 +559,28 @@ int lcoreGetClipboardText( lua_State* L ) {
return 1;
}
/*
> RL.EnableEventWaiting()
Enable waiting for events on EndDrawing(), no automatic event polling
*/
int lcoreEnableEventWaiting( lua_State* L ) {
EnableEventWaiting();
return 0;
}
/*
> RL.DisableEventWaiting()
Disable waiting for events on EndDrawing(), automatic events polling
*/
int lcoreDisableEventWaiting( lua_State* L ) {
DisableEventWaiting();
return 0;
}
/*
## Core - Cursor-related functions
*/