- audioplayer: use and show play/pause/stop/rew/ff keys

This commit is contained in:
svenhoefer
2013-11-07 22:09:23 +01:00
parent 4e423e2bd7
commit 395767adf4

View File

@@ -611,7 +611,7 @@ int CAudioPlayerGui::show()
if (m_key_level == 1) if (m_key_level == 1)
stop(); stop();
} }
else if (msg == CRCInput::RC_green) else if ((msg == CRCInput::RC_rewind) || (msg == CRCInput::RC_green))
{ {
if (m_key_level == 0) if (m_key_level == 0)
{ {
@@ -653,7 +653,7 @@ int CAudioPlayerGui::show()
} }
} }
} }
else if (msg == CRCInput::RC_yellow) else if ((msg == CRCInput::RC_pause) || (msg == CRCInput::RC_yellow))
{ {
if (m_key_level == 0) if (m_key_level == 0)
{ {
@@ -677,7 +677,7 @@ int CAudioPlayerGui::show()
paint(); paint();
} }
} }
else if (msg == CRCInput::RC_blue) else if ((msg == CRCInput::RC_forward) || (msg == CRCInput::RC_blue))
{ {
if (m_key_level == 0) if (m_key_level == 0)
{ {
@@ -1658,10 +1658,10 @@ void CAudioPlayerGui::paintHead()
const struct button_label AudioPlayerButtons[][4] = const struct button_label AudioPlayerButtons[][4] =
{ {
{ {
{ NEUTRINO_ICON_BUTTON_RED , LOCALE_AUDIOPLAYER_STOP }, { NEUTRINO_ICON_BUTTON_STOP , LOCALE_AUDIOPLAYER_STOP },
{ NEUTRINO_ICON_BUTTON_GREEN , LOCALE_AUDIOPLAYER_REWIND }, { NEUTRINO_ICON_BUTTON_BACKWARD, LOCALE_AUDIOPLAYER_REWIND },
{ NEUTRINO_ICON_BUTTON_YELLOW, LOCALE_AUDIOPLAYER_PAUSE }, { NEUTRINO_ICON_BUTTON_PAUSE , LOCALE_AUDIOPLAYER_PAUSE },
{ NEUTRINO_ICON_BUTTON_BLUE , LOCALE_AUDIOPLAYER_FASTFORWARD }, { NEUTRINO_ICON_BUTTON_FORWARD , LOCALE_AUDIOPLAYER_FASTFORWARD },
}, },
{ {
{ NEUTRINO_ICON_BUTTON_RED , LOCALE_AUDIOPLAYER_DELETE }, { NEUTRINO_ICON_BUTTON_RED , LOCALE_AUDIOPLAYER_DELETE },
@@ -1686,8 +1686,8 @@ const struct button_label AudioPlayerButtons[][4] =
{ NEUTRINO_ICON_BUTTON_YELLOW, LOCALE_AUDIOPLAYER_BUTTON_SELECT_TITLE_BY_NAME }, { NEUTRINO_ICON_BUTTON_YELLOW, LOCALE_AUDIOPLAYER_BUTTON_SELECT_TITLE_BY_NAME },
}, },
{ {
{ NEUTRINO_ICON_BUTTON_RED , LOCALE_AUDIOPLAYER_STOP }, { NEUTRINO_ICON_BUTTON_STOP , LOCALE_AUDIOPLAYER_STOP },
{ NEUTRINO_ICON_BUTTON_YELLOW, LOCALE_AUDIOPLAYER_PAUSE }, { NEUTRINO_ICON_BUTTON_PAUSE , LOCALE_AUDIOPLAYER_PAUSE },
}, },
{ {
{ NEUTRINO_ICON_BUTTON_GREEN , LOCALE_AUDIOPLAYER_ADD }, { NEUTRINO_ICON_BUTTON_GREEN , LOCALE_AUDIOPLAYER_ADD },