From 23b719e0420cbd04c5b3cc6efc57a3adbd53cfdc Mon Sep 17 00:00:00 2001 From: adelikat Date: Sat, 21 Mar 2009 23:26:04 +0000 Subject: [PATCH] Lua - input.Get() changed the x,y coordinates of the mouse to xmouse and ymouse --- src/lua-engine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lua-engine.cpp b/src/lua-engine.cpp index b56bbda7..94f45abb 100644 --- a/src/lua-engine.cpp +++ b/src/lua-engine.cpp @@ -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");