Lua - zapper.read() change x/y to xmouse/ymouse
This commit is contained in:
parent
8bb8c9e86d
commit
efcc05ed8d
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in New Issue