1
0
Fork 0
forked from len0rd/rockbox

Add touchscreen_get_mode() to plugin and lua.

Change-Id: I44b8693c689da00f57c14622f4ba3dc554dbbfc9
This commit is contained in:
Thomas Martitz 2012-01-26 23:37:27 +01:00
parent f4954c4a9b
commit b8439f2aea
3 changed files with 8 additions and 0 deletions

View file

@ -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),