diff --git a/src/neutrino.cpp b/src/neutrino.cpp index 8e7135c3b..2758ce2fd 100644 --- a/src/neutrino.cpp +++ b/src/neutrino.cpp @@ -323,7 +323,11 @@ static SNeutrinoSettings::usermenu_t usermenu_default[] = { { CRCInput::RC_green, "6", "", "green" }, { CRCInput::RC_yellow, "7,35", "", "yellow" }, { CRCInput::RC_blue, "27,28,21,20,1,24,19,14,10,11", "", "blue" }, //NI +#if HAVE_ARM_HARDWARE + { CRCInput::RC_playpause, "9", "", "5" }, +#else { CRCInput::RC_play, "9", "", "5" }, +#endif { CRCInput::RC_audio, "6", "", "6" }, //NI { CRCInput::RC_nokey, "", "", "" }, }; @@ -3071,7 +3075,8 @@ void CNeutrinoApp::RealRun() as.exec(NULL, "-1"); StartSubtitles(); } - else if( msg == CRCInput::RC_video || msg == CRCInput::RC_play ) { + else if( msg == CRCInput::RC_video || msg == CRCInput::RC_play || msg == CRCInput::RC_playpause) + { //open moviebrowser via media player menu object if (g_settings.recording_type != CNeutrinoApp::RECORDING_OFF) CMediaPlayerMenu::getInstance()->exec(NULL, "moviebrowser"); @@ -5017,7 +5022,11 @@ void CNeutrinoApp::loadKeys(const char * fname) g_settings.key_list_start = tconfig.getInt32( "key_list_start", (unsigned int)CRCInput::RC_nokey ); g_settings.key_list_end = tconfig.getInt32( "key_list_end", (unsigned int)CRCInput::RC_nokey ); +#if HAVE_ARM_HARDWARE + g_settings.key_timeshift = tconfig.getInt32( "key_timeshift", CRCInput::RC_nokey ); // FIXME +#else g_settings.key_timeshift = tconfig.getInt32( "key_timeshift", CRCInput::RC_pause ); +#endif g_settings.key_unlock = tconfig.getInt32( "key_unlock", CRCInput::RC_setup ); g_settings.key_screenshot = tconfig.getInt32( "key_screenshot", (unsigned int)CRCInput::RC_games ); //NI #ifdef ENABLE_PIP @@ -5045,9 +5054,14 @@ void CNeutrinoApp::loadKeys(const char * fname) g_settings.mpkey_rewind = tconfig.getInt32( "mpkey.rewind", CRCInput::RC_rewind ); g_settings.mpkey_forward = tconfig.getInt32( "mpkey.forward", CRCInput::RC_forward ); - g_settings.mpkey_pause = tconfig.getInt32( "mpkey.pause", CRCInput::RC_pause ); g_settings.mpkey_stop = tconfig.getInt32( "mpkey.stop", CRCInput::RC_stop ); +#if HAVE_ARM_HARDWARE + g_settings.mpkey_play = tconfig.getInt32( "mpkey.play", CRCInput::RC_playpause ); + g_settings.mpkey_pause = tconfig.getInt32( "mpkey.pause", CRCInput::RC_playpause ); +#else g_settings.mpkey_play = tconfig.getInt32( "mpkey.play", CRCInput::RC_play ); + g_settings.mpkey_pause = tconfig.getInt32( "mpkey.pause", CRCInput::RC_pause ); +#endif g_settings.mpkey_audio = tconfig.getInt32( "mpkey.audio", CRCInput::RC_green ); g_settings.mpkey_time = tconfig.getInt32( "mpkey.time", CRCInput::RC_timeshift ); g_settings.mpkey_bookmark = tconfig.getInt32( "mpkey.bookmark", CRCInput::RC_yellow );