aboutsummaryrefslogtreecommitdiff
path: root/src/lua/modules/keyboard/je_lua_keyboard.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-11-16 00:24:51 +0800
committerchai <chaifix@163.com>2018-11-16 00:24:51 +0800
commit831e814ce9bdb84e86c06c4a52008f6bdaaa00d6 (patch)
treef91fccc7d2628d6e0a39886134b2bb174f5eede4 /src/lua/modules/keyboard/je_lua_keyboard.cpp
parent6dc75930fe5fe02f1af5489917752d315cf9e48f (diff)
*合并master到minimal分支
Diffstat (limited to 'src/lua/modules/keyboard/je_lua_keyboard.cpp')
-rw-r--r--src/lua/modules/keyboard/je_lua_keyboard.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/lua/modules/keyboard/je_lua_keyboard.cpp b/src/lua/modules/keyboard/je_lua_keyboard.cpp
new file mode 100644
index 0000000..6b7f3cd
--- /dev/null
+++ b/src/lua/modules/keyboard/je_lua_keyboard.cpp
@@ -0,0 +1,17 @@
+#include "lua/common/je_lua_common.h"
+#include "lua/modules/luax.h"
+
+namespace JinEngine
+{
+ namespace Lua
+ {
+ //https://wiki.libsdl.org/SDL_Keycode
+
+ LUA_EXPORT int luaopen_keyboard(lua_State* L)
+ {
+ luax_newlib(L, 0);
+ return 1;
+ }
+
+ } // namespace Lua
+} // namespace JinEngine \ No newline at end of file