Fix build on Windows ( $shell in makefile). Lua: waitinput now additionally returns mouse position in image coordinates

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1819 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2011-07-16 18:57:55 +00:00
parent 6672966661
commit 51ddfe4f86
2 changed files with 5 additions and 3 deletions

View File

@@ -1232,13 +1232,15 @@ int L_WaitInput(lua_State* L)
lua_pushinteger(L, Mouse_X);
lua_pushinteger(L, Mouse_Y);
lua_pushinteger(L, Mouse_K);
lua_pushinteger(L, Paintbrush_X);
lua_pushinteger(L, Paintbrush_Y);
// The event arguments are in the stack.
// Need to reset "Key" here, so that a key event will not be
// created again before an actual key repeat occurs.
Key=0;
return 5;
return 7;
}
int L_UpdateScreen(lua_State* L)