RL.event function with input events.
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
enum EventType { 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 );
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user