diff --git a/src/lua-engine.cpp b/src/lua-engine.cpp index 7a492a4b..14497ed6 100644 --- a/src/lua-engine.cpp +++ b/src/lua-engine.cpp @@ -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");