summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/lua_core.h14
-rw-r--r--include/state.h7
2 files changed, 20 insertions, 1 deletions
diff --git a/include/lua_core.h b/include/lua_core.h
index 7c61d07..45ad1f5 100644
--- a/include/lua_core.h
+++ b/include/lua_core.h
@@ -1,6 +1,18 @@
#pragma once
-enum EventType { EVENT_KEY, EVENT_CHAR, EVENT_MOUSE_BUTTON, EVENT_MOUSE_CURSOR_POS, EVENT_MOUSE_SCROLL, EVENT_CURSOR_ENTER };
+enum EventType {
+ EVENT_WINDOW_SIZE,
+ EVENT_WINDOW_MAXIMIZE,
+ EVENT_WINDOW_ICONYFY,
+ EVENT_WINDOW_FOCUS,
+ EVENT_WINDOW_DROP,
+ EVENT_KEY,
+ EVENT_CHAR,
+ EVENT_MOUSE_BUTTON,
+ EVENT_MOUSE_CURSOR_POS,
+ EVENT_MOUSE_SCROLL,
+ EVENT_CURSOR_ENTER
+};
void defineGlobals();
void logCustom( int logLevel, const char *text, va_list args );
diff --git a/include/state.h b/include/state.h
index ef30dfa..13a7c6c 100644
--- a/include/state.h
+++ b/include/state.h
@@ -80,6 +80,13 @@ typedef struct {
size_t lightCount;
size_t lightAlloc;
/* Raylib GLFW input callback events. */
+ /* Window events. */
+ GLFWwindowsizefun raylibWindowSizeCallback;
+ GLFWwindowmaximizefun raylibWindowMaximizeCallback;
+ GLFWwindowiconifyfun raylibWindowIconifyCallback;
+ GLFWwindowfocusfun raylibWindowFocusCallback;
+ GLFWdropfun raylibWindowDropCallback;
+ /* Input events. */
GLFWkeyfun raylibKeyCallback;
GLFWcharfun raylibCharCallback;
GLFWmousebuttonfun raylibMouseButtonCallback;