diff options
author | Nipun Garg | 2019-07-01 09:08:03 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:06 +0200 |
commit | 2cd3bbe2304117a8c0a4cb27f365814c2c9f6f58 (patch) | |
tree | f4242f07940800f26395e7f533fe849547662e76 | |
parent | 84216491421b6c98451c5f7884c509e836b32530 (diff) | |
download | scummvm-rg350-2cd3bbe2304117a8c0a4cb27f365814c2c9f6f58.tar.gz scummvm-rg350-2cd3bbe2304117a8c0a4cb27f365814c2c9f6f58.tar.bz2 scummvm-rg350-2cd3bbe2304117a8c0a4cb27f365814c2c9f6f58.zip |
HDB: Add Lua function for setPointerState()
-rw-r--r-- | engines/hdb/lua-script.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/hdb/lua-script.cpp b/engines/hdb/lua-script.cpp index 69e43fabe6..40582a54f7 100644 --- a/engines/hdb/lua-script.cpp +++ b/engines/hdb/lua-script.cpp @@ -955,7 +955,13 @@ static int setInfobarDark(lua_State *L) { } static int setPointerState(lua_State *L) { - warning("STUB: SET POINTER STATE"); + double value = lua_tonumber(L, 1); + + g_hdb->_lua->checkParameters("setPointerState", 1); + + lua_pop(L, 1); + + g_hdb->_drawMan->setPointerState((int)value); return 0; } |