aboutsummaryrefslogtreecommitdiffstats
path: root/sdl.h
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2021-02-11 12:15:12 +0000
committerTomasz Kramkowski <tk@the-tk.com>2021-02-11 14:25:14 +0000
commitbb97e8aaa15217afe1f3fcdc93662ab03b8ae9d9 (patch)
tree64fa5b5ba419e72bc6acaddadbc51c73646295fa /sdl.h
downloadluiml-bb97e8aaa15217afe1f3fcdc93662ab03b8ae9d9.tar.gz
luiml-bb97e8aaa15217afe1f3fcdc93662ab03b8ae9d9.tar.xz
luiml-bb97e8aaa15217afe1f3fcdc93662ab03b8ae9d9.zip
init commit
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 */