change RC_back handling; its not longer translated to RC_home

Origin commit data
------------------
Branch: ni/coolstream
Commit: b0c6332f44
Author: vanhofen <vanhofen@gmx.de>
Date: 2022-01-03 (Mon, 03 Jan 2022)

Origin message was:
------------------
- change RC_back handling; its not longer translated to RC_home

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2022-01-03 22:32:25 +01:00
parent 357b3476dd
commit 7facad0a86
43 changed files with 80 additions and 58 deletions

View File

@@ -3593,8 +3593,8 @@ void CNeutrinoApp::RealRun()
numericZap(msg);
}
else if (msg == (neutrino_msg_t) g_settings.key_zaphistory || msg == (neutrino_msg_t) g_settings.key_current_transponder) {
//NI InfoIcons; hide, if one of the keys above is assigned to RC_home
if (msg == CRCInput::RC_home)
//NI InfoIcons; hide, if one of the keys above is assigned to RC_home or RC_back
if (backKey(msg))
{
if (g_settings.mode_icons && g_settings.mode_icons_skin == INFOICONS_POPUP)
InfoIcons->hideIcons();
@@ -3800,7 +3800,7 @@ void CNeutrinoApp::RealRun()
else if (msg == CRCInput::RC_aux)
AVInputMode(true);
else {
if (msg == CRCInput::RC_home)
if (CNeutrinoApp::getInstance()->backKey(msg))
{
//NI InfoIcons
if(g_settings.mode_icons && g_settings.mode_icons_skin == INFOICONS_POPUP) {
@@ -3815,7 +3815,7 @@ void CNeutrinoApp::RealRun()
}
else {
// mode == NeutrinoModes::mode_avinput
if (msg == CRCInput::RC_home || msg == CRCInput::RC_aux) {
if (backKey(msg) || msg == CRCInput::RC_aux) {
if( mode == NeutrinoModes::mode_avinput ) {
// AVInput-Mode verlassen
AVInputMode(false);
@@ -4041,6 +4041,19 @@ bool CNeutrinoApp::listModeKey(const neutrino_msg_t msg)
return false;
}
bool CNeutrinoApp::backKey(const neutrino_msg_t msg)
{
if (
msg == CRCInput::RC_home
|| msg == CRCInput::RC_back
)
{
printf("CNeutrinoApp::backKey: true\n");
return true;
}
return false;
}
int CNeutrinoApp::handleMsg(const neutrino_msg_t _msg, neutrino_msg_data_t data)
{
int res = 0;