(HAVE_OSK) Add OSK to menu iterate function

This commit is contained in:
twinaphex 2013-11-15 05:18:36 +01:00
parent 3ccf5c1457
commit e8723dec16

View File

@ -1321,6 +1321,22 @@ static int menu_iterate_func(void *data, unsigned action)
break;
}
#ifdef HAVE_OSK
// process pending osk init callback
if (g_settings.osk.cb_init != NULL)
{
if (g_settings.osk.cb_init(driver.osk_data))
g_settings.osk.cb_init = NULL;
}
// process pending osk callback
if (g_settings.osk.cb_callback != NULL)
{
if (g_settings.osk.cb_callback(driver.osk_data))
g_settings.osk.cb_callback = NULL;
}
#endif
// refresh values in case the stack changed
file_list_get_last(rgui->menu_stack, &dir, &menu_type);