- infoviewer_bb: use key-assignment from movieplayer

This commit is contained in:
svenhoefer
2015-12-14 23:04:04 +01:00
parent 7ccb57548b
commit 4c7cea95e9
3 changed files with 43 additions and 7 deletions

View File

@@ -568,3 +568,17 @@ bool CKeybindSetup::changeNotify(const neutrino_locale_t OptionName, void * /* d
}
return false;
}
const char *CKeybindSetup::getMoviePlayerButtonName(const neutrino_msg_t key, bool &active)
{
active = false;
for (unsigned int i = MPKEY_REWIND; i <= MPKEY_PLUGIN; i++)
{
if ((uint32_t)*key_settings[i].keyvalue_p == (unsigned int)key)
{
active = true;
return g_Locale->getText(key_settings[i].keydescription);
}
}
return "";
}