summaryrefslogtreecommitdiff
path: root/apps/settings_menu.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2006-09-10 02:00:40 +0000
committerMichael Sevakis <jethead71@rockbox.org>2006-09-10 02:00:40 +0000
commit3d2e10bcbd13ec48decafe49f32afcc12c5e185a (patch)
tree60c490e727a28fd2359c3d185cf2a4f5fd8c328b /apps/settings_menu.c
parent24ca76ffec3e0d782f75ac1cca2c0b2c8b71f5db (diff)
downloadrockbox-3d2e10bcbd13ec48decafe49f32afcc12c5e185a.tar.gz
rockbox-3d2e10bcbd13ec48decafe49f32afcc12c5e185a.zip
Added remote backlight on hold option to players with remote hold switch. Disabled IRQs while reading pcf50606 ADC. This seems to have stopped buttons becoming unresponsive when using remote. Maybe fixes other button glitches as well?
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10911 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings_menu.c')
-rw-r--r--apps/settings_menu.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/apps/settings_menu.c b/apps/settings_menu.c
index 5f84dc1d34..ab19c820be 100644
--- a/apps/settings_menu.c
+++ b/apps/settings_menu.c
@@ -315,6 +315,22 @@ static bool remote_caption_backlight(void)
315 return set_bool((char *)str(LANG_CAPTION_BACKLIGHT), 315 return set_bool((char *)str(LANG_CAPTION_BACKLIGHT),
316 &global_settings.remote_caption_backlight); 316 &global_settings.remote_caption_backlight);
317} 317}
318
319#ifdef HAS_REMOTE_BUTTON_HOLD
320static bool remote_backlight_on_button_hold(void)
321{
322 static const struct opt_items names[3] = {
323 { STR(LANG_BACKLIGHT_ON_BUTTON_HOLD_NORMAL) },
324 { STR(LANG_OFF) },
325 { STR(LANG_ON) },
326 };
327 return set_option(str(LANG_BACKLIGHT_ON_BUTTON_HOLD),
328 &global_settings.remote_backlight_on_button_hold,
329 INT, names, 3,
330 remote_backlight_set_on_button_hold);
331}
332#endif /* HAS_BUTTON_HOLD */
333
318#endif /* HAVE_REMOTE_LCD */ 334#endif /* HAVE_REMOTE_LCD */
319 335
320#ifdef HAVE_LCD_CONTRAST 336#ifdef HAVE_LCD_CONTRAST
@@ -1887,6 +1903,9 @@ static bool lcd_remote_settings_menu(void)
1887 { ID2P(LANG_BACKLIGHT_ON_WHEN_CHARGING), 1903 { ID2P(LANG_BACKLIGHT_ON_WHEN_CHARGING),
1888 remote_backlight_timer_plugged }, 1904 remote_backlight_timer_plugged },
1889#endif 1905#endif
1906#ifdef HAS_REMOTE_BUTTON_HOLD
1907 { ID2P(LANG_BACKLIGHT_ON_BUTTON_HOLD), remote_backlight_on_button_hold },
1908#endif
1890 { ID2P(LANG_CAPTION_BACKLIGHT), remote_caption_backlight }, 1909 { ID2P(LANG_CAPTION_BACKLIGHT), remote_caption_backlight },
1891 { ID2P(LANG_BACKLIGHT_FILTER_FIRST_KEYPRESS), set_remote_bl_filter_first_keypress }, 1910 { ID2P(LANG_BACKLIGHT_FILTER_FIRST_KEYPRESS), set_remote_bl_filter_first_keypress },
1892 { ID2P(LANG_CONTRAST), remote_contrast }, 1911 { ID2P(LANG_CONTRAST), remote_contrast },