From fa234f9663b992cf50bcf865a1cde6845b42193c Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 21 May 2018 16:02:00 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=94=B9audio=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/script/mouse/luaopen_mouse.cpp | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 src/script/mouse/luaopen_mouse.cpp (limited to 'src/script/mouse/luaopen_mouse.cpp') diff --git a/src/script/mouse/luaopen_mouse.cpp b/src/script/mouse/luaopen_mouse.cpp deleted file mode 100644 index 29819e1..0000000 --- a/src/script/mouse/luaopen_mouse.cpp +++ /dev/null @@ -1,27 +0,0 @@ -#include "3rdparty/luax/luax.h" -#include "SDL2/SDL.h" -namespace jin -{ -namespace lua -{ - static int l_pos(lua_State* L) - { - int x, y; - SDL_GetMouseState(&x, &y); - luax_pushnumber(L, x); - luax_pushnumber(L, y); - return 2; - } - - static const luaL_Reg f[] = { - {"position", l_pos}, - {0, 0} - }; - - int luaopen_mouse(lua_State* L) - { - luax_newlib(L, f); - return 1; - } -} -} \ No newline at end of file -- cgit v1.1-26-g67d0