summaryrefslogtreecommitdiff
path: root/apps/plugins/lua/rocklib.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lua/rocklib.c')
-rw-r--r--apps/plugins/lua/rocklib.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/plugins/lua/rocklib.c b/apps/plugins/lua/rocklib.c
index ddd4081371..8e1ab19941 100644
--- a/apps/plugins/lua/rocklib.c
+++ b/apps/plugins/lua/rocklib.c
@@ -425,6 +425,11 @@ RB_WRAP(touchscreen_set_mode)
425 rb->touchscreen_set_mode(mode); 425 rb->touchscreen_set_mode(mode);
426 return 0; 426 return 0;
427} 427}
428RB_WRAP(touchscreen_get_mode)
429{
430 lua_pushinteger(L, rb->touchscreen_get_mode());
431 return 1;
432}
428#endif 433#endif
429 434
430RB_WRAP(font_getstringsize) 435RB_WRAP(font_getstringsize)
@@ -638,6 +643,7 @@ static const luaL_Reg rocklib[] =
638#ifdef HAVE_TOUCHSCREEN 643#ifdef HAVE_TOUCHSCREEN
639 R(action_get_touchscreen_press), 644 R(action_get_touchscreen_press),
640 R(touchscreen_set_mode), 645 R(touchscreen_set_mode),
646 R(touchscreen_get_mode),
641#endif 647#endif
642 R(kbd_input), 648 R(kbd_input),
643 649