From c911ba043116e9d0e321311ddf27b0170d74410b Mon Sep 17 00:00:00 2001 From: jussi Date: Fri, 18 Aug 2023 01:23:30 +0300 Subject: RL.event function with input events. --- include/state.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/state.h') diff --git a/include/state.h b/include/state.h index 2082005..ef30dfa 100644 --- a/include/state.h +++ b/include/state.h @@ -79,6 +79,13 @@ typedef struct { Light **lights; size_t lightCount; size_t lightAlloc; + /* Raylib GLFW input callback events. */ + GLFWkeyfun raylibKeyCallback; + GLFWcharfun raylibCharCallback; + GLFWmousebuttonfun raylibMouseButtonCallback; + GLFWcursorposfun raylibMouseCursorPosCallback; + GLFWscrollfun raylibMouseScrollCallback; + GLFWcursorenterfun raylibCursorEnterCallback; } State; extern State *state; -- cgit v1.2.3