mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 01:11:12 +02:00
neutrino: let the "AUX" key switch to SCART input on TD
This commit is contained in:
@@ -2154,6 +2154,8 @@ void CNeutrinoApp::RealRun(CMenuWidget &mainMenu)
|
|||||||
CTimerList Timerlist;
|
CTimerList Timerlist;
|
||||||
Timerlist.exec(NULL, "");
|
Timerlist.exec(NULL, "");
|
||||||
}
|
}
|
||||||
|
else if (msg == CRCInput::RC_aux)
|
||||||
|
scartMode(true);
|
||||||
else {
|
else {
|
||||||
if (msg == CRCInput::RC_home) {
|
if (msg == CRCInput::RC_home) {
|
||||||
if(g_settings.mode_clock && g_settings.key_zaphistory == CRCInput::RC_home) {
|
if(g_settings.mode_clock && g_settings.key_zaphistory == CRCInput::RC_home) {
|
||||||
@@ -2167,7 +2169,7 @@ void CNeutrinoApp::RealRun(CMenuWidget &mainMenu)
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// mode == mode_scart
|
// mode == mode_scart
|
||||||
if( msg == CRCInput::RC_home ) {
|
if (msg == CRCInput::RC_home || msg == CRCInput::RC_aux) {
|
||||||
if( mode == mode_scart ) {
|
if( mode == mode_scart ) {
|
||||||
// Scart-Mode verlassen
|
// Scart-Mode verlassen
|
||||||
scartMode( false );
|
scartMode( false );
|
||||||
@@ -3126,13 +3128,22 @@ void CNeutrinoApp::scartMode( bool bOnOff )
|
|||||||
frameBuffer->paintBackground();
|
frameBuffer->paintBackground();
|
||||||
|
|
||||||
//g_Controld->setScartMode( 1 );
|
//g_Controld->setScartMode( 1 );
|
||||||
|
#if HAVE_TRIPLEDRAGON
|
||||||
|
/* would this hurt on Coolstream? */
|
||||||
|
videoDecoder->Stop(true);
|
||||||
|
videoDecoder->Standby(true);
|
||||||
|
#endif
|
||||||
CVFD::getInstance()->setMode(CVFD::MODE_SCART);
|
CVFD::getInstance()->setMode(CVFD::MODE_SCART);
|
||||||
lastMode = mode;
|
lastMode = mode;
|
||||||
mode = mode_scart;
|
mode = mode_scart;
|
||||||
} else {
|
} else {
|
||||||
// SCART AUS
|
// SCART AUS
|
||||||
//g_Controld->setScartMode( 0 );
|
//g_Controld->setScartMode( 0 );
|
||||||
|
#if HAVE_TRIPLEDRAGON
|
||||||
|
/* could actually go into radioMode() and tvMode()? */
|
||||||
|
videoDecoder->Standby(false);
|
||||||
|
videoDecoder->Start();
|
||||||
|
#endif
|
||||||
mode = mode_unknown;
|
mode = mode_unknown;
|
||||||
//re-set mode
|
//re-set mode
|
||||||
if( lastMode == mode_radio ) {
|
if( lastMode == mode_radio ) {
|
||||||
|
Reference in New Issue
Block a user