From 244920fab8cdb3ede8798a0fec320fe5526fa54f Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Thu, 28 Feb 2013 16:20:23 +0400 Subject: [PATCH] neutrino.cpp: save/load pip key - default is 'help' button, stop PiP on pip key Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/f5c162522ba0035b46cf1ad50c04e2401366ba8f Author: [CST] Focus Date: 2013-02-28 (Thu, 28 Feb 2013) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/neutrino.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/neutrino.cpp b/src/neutrino.cpp index dd1b55ef6..b440015c4 100644 --- a/src/neutrino.cpp +++ b/src/neutrino.cpp @@ -2111,6 +2111,11 @@ void CNeutrinoApp::RealRun(CMenuWidget &mainMenu) else if (msg == (neutrino_msg_t) g_settings.key_current_transponder){ numericZap( msg ); } +#ifdef BOXMODEL_APOLLO + else if (msg == (neutrino_msg_t) g_settings.key_pip) { + CZapit::getInstance()->StopPip(); + } +#endif else if (CRCInput::isNumeric(msg)) { numericZap( msg ); } @@ -3595,6 +3600,7 @@ void CNeutrinoApp::loadKeys(const char * fname) g_settings.key_plugin = tconfig.getInt32( "key_plugin", CRCInput::RC_nokey ); g_settings.key_unlock = tconfig.getInt32( "key_unlock", CRCInput::RC_setup ); g_settings.key_screenshot = tconfig.getInt32( "key_screenshot", CRCInput::RC_nokey ); + g_settings.key_pip = tconfig.getInt32( "key_pip", CRCInput::RC_help ); g_settings.key_current_transponder = tconfig.getInt32( "key_current_transponder", CRCInput::RC_games ); g_settings.key_quickzap_up = tconfig.getInt32( "key_quickzap_up", CRCInput::RC_up ); @@ -3653,6 +3659,7 @@ void CNeutrinoApp::saveKeys(const char * fname) tconfig.setInt32( "key_plugin", g_settings.key_plugin ); tconfig.setInt32( "key_unlock", g_settings.key_unlock ); tconfig.setInt32( "key_screenshot", g_settings.key_screenshot ); + tconfig.setInt32( "key_pip", g_settings.key_pip ); tconfig.setInt32( "key_current_transponder", g_settings.key_current_transponder ); tconfig.setInt32( "key_quickzap_up", g_settings.key_quickzap_up );