- moviebrowser: introduce user-assignable keys

This commit is contained in:
svenhoefer
2016-02-09 15:53:56 +01:00
parent 00b97778a3
commit ab82c36b9f
9 changed files with 67 additions and 34 deletions

View File

@@ -4180,6 +4180,10 @@ void CNeutrinoApp::loadKeys(const char * fname)
g_settings.key_bouquet_up = tconfig.getInt32( "key_bouquet_up", CRCInput::RC_right);
g_settings.key_bouquet_down = tconfig.getInt32( "key_bouquet_down", CRCInput::RC_left);
g_settings.mbkey_copy_onefile = tconfig.getInt32( "mbkey.copy_onefile", CRCInput::RC_radio );
g_settings.mbkey_copy_several = tconfig.getInt32( "mbkey.copy_several", CRCInput::RC_text );
g_settings.mbkey_cut = tconfig.getInt32( "mbkey.cut", CRCInput::RC_audio );
g_settings.mbkey_truncate = tconfig.getInt32( "mbkey.truncate", CRCInput::RC_games );
g_settings.mpkey_rewind = tconfig.getInt32( "mpkey.rewind", CRCInput::RC_rewind );
g_settings.mpkey_forward = tconfig.getInt32( "mpkey.forward", CRCInput::RC_forward );
@@ -4259,6 +4263,11 @@ void CNeutrinoApp::saveKeys(const char * fname)
tconfig.setInt32( "key_bouquet_up", g_settings.key_bouquet_up );
tconfig.setInt32( "key_bouquet_down", g_settings.key_bouquet_down );
tconfig.setInt32( "mbkey.copy_onefile", g_settings.mbkey_copy_onefile );
tconfig.setInt32( "mbkey.copy_several", g_settings.mbkey_copy_several );
tconfig.setInt32( "mbkey.cut", g_settings.mbkey_cut );
tconfig.setInt32( "mbkey.truncate", g_settings.mbkey_truncate );
tconfig.setInt32( "mpkey.rewind", g_settings.mpkey_rewind );
tconfig.setInt32( "mpkey.forward", g_settings.mpkey_forward );
tconfig.setInt32( "mpkey.pause", g_settings.mpkey_pause );