EnableEventWaiting and DisableEventWaiting.
This commit is contained in:
22
src/core.c
22
src/core.c
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user