summaryrefslogtreecommitdiff
path: root/lib/luavgl/src/indev.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/luavgl/src/indev.c')
-rw-r--r--lib/luavgl/src/indev.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/lib/luavgl/src/indev.c b/lib/luavgl/src/indev.c
index a21e3ee8..0479e204 100644
--- a/lib/luavgl/src/indev.c
+++ b/lib/luavgl/src/indev.c
@@ -55,6 +55,7 @@ static int luavgl_indev_get_act(lua_State *L)
return luavgl_indev_get(L, indev);
}
+#if 0
static int luavgl_indev_get_obj_act(lua_State *L)
{
lv_obj_t *obj = lv_indev_get_obj_act();
@@ -73,6 +74,7 @@ static int luavgl_indev_get_obj_act(lua_State *L)
return 1;
}
+#endif
static int luavgl_indev_get_next(lua_State *L)
{
@@ -201,6 +203,7 @@ static int luavgl_indev_wait_release(lua_State *L)
return 0;
}
+#if 0
static void indev_feedback_cb(lv_indev_drv_t *driver, uint8_t code)
{
lua_State *L = driver->user_data;
@@ -249,8 +252,8 @@ static int luavgl_indev_on_event(lua_State *L)
lua_setuservalue(L, 1);
}
- debug("add feedback_cb code %d, for indev->driver: %p\n", code,
- i->indev->driver);
+ LV_LOG_INFO("add feedback_cb code %d, for indev->driver: %p\n", code,
+ i->indev->driver);
lua_pushvalue(L, 3);
lua_rawseti(L, -2, code);
@@ -259,6 +262,7 @@ static int luavgl_indev_on_event(lua_State *L)
lua_settop(L, 1);
return 1;
}
+#endif
static int luavgl_indev_tostring(lua_State *L)
{
@@ -268,8 +272,9 @@ static int luavgl_indev_tostring(lua_State *L)
static int luavgl_indev_gc(lua_State *L)
{
- debug("\n");
+ LV_LOG_INFO("enter");
+#if 0
/* If set_feedback_cb is used, then the indev only gets gc'ed when lua vm
* exits.
*/
@@ -281,6 +286,7 @@ static int luavgl_indev_gc(lua_State *L)
lua_rawset(L, LUA_REGISTRYINDEX);
i->indev->driver->feedback_cb = NULL;
}
+#endif
return 0;
}
@@ -290,7 +296,9 @@ static int luavgl_indev_gc(lua_State *L)
*/
static const luaL_Reg indev_lib[] = {
{"get_act", luavgl_indev_get_act },
+#if 0
{"get_obj_act", luavgl_indev_get_obj_act},
+#endif
{"get_next", luavgl_indev_get_next },
{NULL, NULL },
@@ -312,8 +320,9 @@ static const luaL_Reg methods[] = {
{"get_scroll_obj", luavgl_indev_get_scroll_obj },
{"get_vect", luavgl_indev_get_vect },
{"wait_release", luavgl_indev_wait_release },
+#if 0
{"on_event", luavgl_indev_on_event },
-
+#endif
{NULL, NULL },
};