From 1b773ad2c250e09c09c065eb3eec64bfebde09ca Mon Sep 17 00:00:00 2001 From: chai Date: Fri, 18 May 2018 14:39:38 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=94=B9userdata=E5=88=9B=E5=BB=BA=E6=96=B9?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/script/luaopen_jin.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/script/luaopen_jin.cpp') 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} }; -- cgit v1.1-26-g67d0