Lua - input.Get() changed the x,y coordinates of the mouse to xmouse and ymouse
This commit is contained in:
parent
b680a4d0f9
commit
23b719e042
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in New Issue