From b8439f2aeab3920eeeabfbf2c5cf15979619410b Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Thu, 26 Jan 2012 23:37:27 +0100 Subject: Add touchscreen_get_mode() to plugin and lua. Change-Id: I44b8693c689da00f57c14622f4ba3dc554dbbfc9 --- apps/plugins/lua/rocklib.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'apps/plugins/lua/rocklib.c') 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) rb->touchscreen_set_mode(mode); return 0; } +RB_WRAP(touchscreen_get_mode) +{ + lua_pushinteger(L, rb->touchscreen_get_mode()); + return 1; +} #endif RB_WRAP(font_getstringsize) @@ -638,6 +643,7 @@ static const luaL_Reg rocklib[] = #ifdef HAVE_TOUCHSCREEN R(action_get_touchscreen_press), R(touchscreen_set_mode), + R(touchscreen_get_mode), #endif R(kbd_input), -- cgit v1.2.3