aboutsummaryrefslogtreecommitdiff
path: root/src/script/luaopen_jin.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-05-18 14:39:38 +0800
committerchai <chaifix@163.com>2018-05-18 14:39:38 +0800
commit1b773ad2c250e09c09c065eb3eec64bfebde09ca (patch)
treeb3f1f367694d5f86cc0caa7f4eea2e6a1d3424c5 /src/script/luaopen_jin.cpp
parent91a592da979827b1735901388dba8712e6e3ecf3 (diff)
修改userdata创建方式
Diffstat (limited to 'src/script/luaopen_jin.cpp')
-rw-r--r--src/script/luaopen_jin.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/script/luaopen_jin.cpp b/src/script/luaopen_jin.cpp
index d7262e1..dcf8830 100644
--- a/src/script/luaopen_jin.cpp
+++ b/src/script/luaopen_jin.cpp
@@ -18,6 +18,7 @@ namespace lua
extern int luaopen_mouse(lua_State* L);
extern int luaopen_keyboard(lua_State* L);
extern int luaopen_filesystem(lua_State* L);
+ extern int luaopen_joypad(lua_State* L);
static int l_getversion(lua_State* L)
{
@@ -60,7 +61,8 @@ namespace lua
{"keyboard", luaopen_keyboard},
{"filesystem", luaopen_filesystem},
{"net", luaopen_net},
- //{"audio", luaopen_audio},
+ {"audio", luaopen_audio},
+ {"joypad", luaopen_joypad},
{0, 0}
};