summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorjussi2023-11-18 17:11:36 +0200
committerjussi2023-11-18 17:11:36 +0200
commitd19864947b6e8ea1049a56ca3d965691c51b4108 (patch)
tree5bd46e570b673ece6ef697848516d5d2401f093a /include
parent5c8324d25f5f3500d5258f599afc710352611513 (diff)
downloadreilua-enhanced-d19864947b6e8ea1049a56ca3d965691c51b4108.tar.gz
reilua-enhanced-d19864947b6e8ea1049a56ca3d965691c51b4108.tar.bz2
reilua-enhanced-d19864947b6e8ea1049a56ca3d965691c51b4108.zip
Joystick event.
Diffstat (limited to 'include')
-rw-r--r--include/lua_core.h3
-rw-r--r--include/state.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/include/lua_core.h b/include/lua_core.h
index a289cb0..431fc28 100644
--- a/include/lua_core.h
+++ b/include/lua_core.h
@@ -11,7 +11,8 @@ enum EventType {
EVENT_MOUSE_BUTTON,
EVENT_MOUSE_CURSOR_POS,
EVENT_MOUSE_SCROLL,
- EVENT_CURSOR_ENTER
+ EVENT_CURSOR_ENTER,
+ EVENT_JOYSTICK
};
enum BufferType {
diff --git a/include/state.h b/include/state.h
index 1172086..a777f40 100644
--- a/include/state.h
+++ b/include/state.h
@@ -27,6 +27,7 @@ typedef struct {
GLFWcursorposfun raylibMouseCursorPosCallback;
GLFWscrollfun raylibMouseScrollCallback;
GLFWcursorenterfun raylibCursorEnterCallback;
+ GLFWjoystickfun raylibJoystickCallback;
} State;
extern State *state;