diff options
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 |