Lua - input.Get() changed the x,y coordinates of the mouse to xmouse and ymouse

This commit is contained in:
adelikat 2009-03-21 23:26:04 +00:00
parent b680a4d0f9
commit 23b719e042
1 changed files with 2 additions and 2 deletions

View File

@ -587,9 +587,9 @@ static int input_get(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");