diff options
author | chai <chaifix@163.com> | 2018-05-21 16:02:00 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-05-21 16:02:00 +0800 |
commit | fa234f9663b992cf50bcf865a1cde6845b42193c (patch) | |
tree | 34ecd41b60ef48c960a79a4077e5e0c8536102fd /src/script/mouse/luaopen_mouse.cpp | |
parent | 51ba9cb2a6b0b9395a2912eadeb954c95e4c1d3c (diff) |
修改audio模块
Diffstat (limited to 'src/script/mouse/luaopen_mouse.cpp')
-rw-r--r-- | src/script/mouse/luaopen_mouse.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
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 |