possibly fix mouse input in sdl lua

This commit is contained in:
zeromus 2010-07-18 02:45:17 +00:00
parent b8c6ed272e
commit cb95c4fc96
1 changed files with 5 additions and 6 deletions

View File

@ -2134,8 +2134,12 @@ static int input_get(lua_State *L) {
}
}
}
#else
//SDL TODO: implement this for keyboard!!
#endif
// mouse position in game screen pixel coordinates
extern void GetMouseData(uint32 (&md)[3]);
uint32 MouseData[3];
@ -2151,11 +2155,6 @@ static int input_get(lua_State *L) {
lua_pushinteger(L, click);
lua_setfield(L, -2, "click");
#else
// NYI (well, return an empty table) //SDL TODO: implement this!
#endif
return 1;
}