summaryrefslogtreecommitdiff
path: root/src/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/core.c b/src/core.c
index 58316bf..ec650f4 100644
--- a/src/core.c
+++ b/src/core.c
@@ -560,6 +560,28 @@ int lcoreGetClipboardText( lua_State* L ) {
}
/*
+> 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
*/