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/keyboard/je_lua_keyboard.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/lua/modules/keyboard/je_lua_keyboard.cpp (limited to 'src/lua/modules/keyboard/je_lua_keyboard.cpp') 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..727a51e --- /dev/null +++ b/src/lua/modules/keyboard/je_lua_keyboard.cpp @@ -0,0 +1,16 @@ +#include "lua/modules/luax.h" + +namespace JinEngine +{ + namespace Lua + { + //https://wiki.libsdl.org/SDL_Keycode + + int luaopen_keyboard(lua_State* L) + { + luax_newlib(L, 0); + return 1; + } + + } // namespace Lua +} // namespace JinEngine \ No newline at end of file -- cgit v1.1-26-g67d0