diff options
| author | jussi | 2023-08-18 15:01:58 +0300 |
|---|---|---|
| committer | jussi | 2023-08-18 15:01:58 +0300 |
| commit | 3fc07a02d5213a88ebb555d3133af2746600cf61 (patch) | |
| tree | 07517393d893aed465f97209c553f0f733544d3f /include | |
| parent | c911ba043116e9d0e321311ddf27b0170d74410b (diff) | |
| download | reilua-enhanced-3fc07a02d5213a88ebb555d3133af2746600cf61.tar.gz reilua-enhanced-3fc07a02d5213a88ebb555d3133af2746600cf61.tar.bz2 reilua-enhanced-3fc07a02d5213a88ebb555d3133af2746600cf61.zip | |
Window events.
Diffstat (limited to 'include')
| -rw-r--r-- | include/lua_core.h | 14 | ||||
| -rw-r--r-- | include/state.h | 7 |
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; |
