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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user