From cb95c4fc9664798a04417ee4f343266624151702 Mon Sep 17 00:00:00 2001 From: zeromus Date: Sun, 18 Jul 2010 02:45:17 +0000 Subject: [PATCH] possibly fix mouse input in sdl lua --- src/lua-engine.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/lua-engine.cpp b/src/lua-engine.cpp index 9c8cf327..a678d63e 100644 --- a/src/lua-engine.cpp +++ b/src/lua-engine.cpp @@ -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; }