From 2cd3bbe2304117a8c0a4cb27f365814c2c9f6f58 Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Mon, 1 Jul 2019 09:08:03 +0530 Subject: HDB: Add Lua function for setPointerState() --- engines/hdb/lua-script.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'engines') 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; } -- cgit v1.2.3