mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-02 02:11:11 +02:00
@@ -247,7 +247,6 @@ bool checkLongPress(uint32_t key)
|
||||
|
||||
int CKeybindSetup::showKeySetup()
|
||||
{
|
||||
#if !HAVE_SPARK_HARDWARE
|
||||
//save original rc hardware selection and initialize text strings
|
||||
int org_remote_control_hardware = g_settings.remote_control_hardware;
|
||||
char RC_HW_str[4][32];
|
||||
@@ -257,7 +256,6 @@ int CKeybindSetup::showKeySetup()
|
||||
snprintf(RC_HW_str[CRCInput::RC_HW_TRIPLEDRAGON], sizeof(RC_HW_str[CRCInput::RC_HW_TRIPLEDRAGON])-1, "%s", g_Locale->getText(LOCALE_KEYBINDINGMENU_REMOTECONTROL_HARDWARE_TRIPLEDRAGON));
|
||||
char RC_HW_msg[256];
|
||||
snprintf(RC_HW_msg, sizeof(RC_HW_msg)-1, "%s", g_Locale->getText(LOCALE_KEYBINDINGMENU_REMOTECONTROL_HARDWARE_MSG_PART1));
|
||||
#endif
|
||||
|
||||
//keysetup menu
|
||||
CMenuWidget* keySettings = new CMenuWidget(LOCALE_MAINSETTINGS_HEAD, NEUTRINO_ICON_KEYBINDING, width, MN_WIDGET_ID_KEYSETUP);
|
||||
@@ -310,7 +308,7 @@ int CKeybindSetup::showKeySetup()
|
||||
mc->setHint("", LOCALE_MENU_HINT_ACCEPT_OTHER_REMOTES);
|
||||
keySettings->addItem(mc);
|
||||
#endif
|
||||
#if !HAVE_SPARK_HARDWARE
|
||||
|
||||
if (RC_HW_SELECT) {
|
||||
CMenuOptionChooser * mc = new CMenuOptionChooser(LOCALE_KEYBINDINGMENU_REMOTECONTROL_HARDWARE,
|
||||
&g_settings.remote_control_hardware, KEYBINDINGMENU_REMOTECONTROL_HARDWARE_OPTIONS, KEYBINDINGMENU_REMOTECONTROL_HARDWARE_OPTION_COUNT, true, NULL,
|
||||
@@ -318,7 +316,6 @@ int CKeybindSetup::showKeySetup()
|
||||
mc->setHint("", LOCALE_MENU_HINT_KEY_HARDWARE);
|
||||
keySettings->addItem(mc);
|
||||
}
|
||||
#endif
|
||||
|
||||
cc = new CMenuOptionNumberChooser(LOCALE_KEYBINDINGMENU_REPEATBLOCK,
|
||||
&g_settings.repeat_blocker, true, 0, 999, this,
|
||||
@@ -338,7 +335,6 @@ int CKeybindSetup::showKeySetup()
|
||||
|
||||
int res = keySettings->exec(NULL, "");
|
||||
|
||||
#if !HAVE_SPARK_HARDWARE
|
||||
//check if rc hardware selection has changed before leaving the menu
|
||||
if (org_remote_control_hardware != g_settings.remote_control_hardware) {
|
||||
g_RCInput->CRCInput::set_rc_hw();
|
||||
@@ -351,7 +347,6 @@ int CKeybindSetup::showKeySetup()
|
||||
g_RCInput->CRCInput::set_rc_hw();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
delete keySettings;
|
||||
for (int i = 0; i < KEYBINDS_COUNT; i++)
|
||||
|
Reference in New Issue
Block a user