From 6551adeca70d4299a99d45245d4e13dbfdfa87e5 Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 23 Oct 2018 15:56:01 +0800 Subject: =?UTF-8?q?*=E4=BF=AE=E6=94=B9lua=E7=BB=91=E5=AE=9A=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E7=9A=84=E6=96=87=E4=BB=B6=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lua/modules/joypad/je_lua_joypad.cpp | 21 +++++++++++++++++++++ src/lua/modules/joypad/joypad.cpp | 21 --------------------- 2 files changed, 21 insertions(+), 21 deletions(-) create mode 100644 src/lua/modules/joypad/je_lua_joypad.cpp delete mode 100644 src/lua/modules/joypad/joypad.cpp (limited to 'src/lua/modules/joypad') diff --git a/src/lua/modules/joypad/je_lua_joypad.cpp b/src/lua/modules/joypad/je_lua_joypad.cpp new file mode 100644 index 0000000..d67a624 --- /dev/null +++ b/src/lua/modules/joypad/je_lua_joypad.cpp @@ -0,0 +1,21 @@ +#include "libjin/jin.h" +#include "lua/modules/luax.h" + +namespace JinEngine +{ + namespace Lua + { + + static const luaL_Reg f[] = { + { 0, 0 } + }; + + int luaopen_joypad(lua_State* L) + { + luax_newlib(L, f); + + return 1; + } + /*SDL_JoystickGetButton*/ + } // namespace Lua +} // namespace JinEngine \ No newline at end of file diff --git a/src/lua/modules/joypad/joypad.cpp b/src/lua/modules/joypad/joypad.cpp deleted file mode 100644 index d67a624..0000000 --- a/src/lua/modules/joypad/joypad.cpp +++ /dev/null @@ -1,21 +0,0 @@ -#include "libjin/jin.h" -#include "lua/modules/luax.h" - -namespace JinEngine -{ - namespace Lua - { - - static const luaL_Reg f[] = { - { 0, 0 } - }; - - int luaopen_joypad(lua_State* L) - { - luax_newlib(L, f); - - return 1; - } - /*SDL_JoystickGetButton*/ - } // namespace Lua -} // namespace JinEngine \ No newline at end of file -- cgit v1.1-26-g67d0