aboutsummaryrefslogtreecommitdiffstats
path: root/sdl.h
diff options
context:
space:
mode:
Diffstat (limited to 'sdl.h')
-rw-r--r--sdl.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/sdl.h b/sdl.h
new file mode 100644
index 0000000..2df6f81
--- /dev/null
+++ b/sdl.h
@@ -0,0 +1,14 @@
+#ifndef SDL_H
+#define SDL_H
+
+#include <SDL.h>
+#include <lua.h>
+
+int sdl_error(lua_State *L, const char *what);
+void acquire_sdl(void);
+void release_sdl(void);
+const char *strbutton(Uint8 button);
+const char *strscancode(SDL_Scancode s);
+const char *strsym(SDL_Keycode k);
+
+#endif /* !SDL_H */