Lua - zapper.read() change x/y to xmouse/ymouse

This commit is contained in:
adelikat 2009-03-16 02:14:28 +00:00
parent 8bb8c9e86d
commit efcc05ed8d
1 changed files with 2 additions and 2 deletions

View File

@ -617,9 +617,9 @@ static int zapper_read(lua_State *L){
int click = MouseData[2]; ///adelikat TODO: remove the ability to store the value 2? Since 2 is right-clicking and not part of zapper input and is used for context menus
lua_pushinteger(L, x);
lua_setfield(L, -2, "x");
lua_setfield(L, -2, "xmouse");
lua_pushinteger(L, y);
lua_setfield(L, -2, "y");
lua_setfield(L, -2, "ymouse");
lua_pushinteger(L, click);
lua_setfield(L, -2, "click");