mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-16 16:42:33 -05:00
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
This commit is contained in:
parent
24ca76ffec
commit
3d2e10bcbd
10 changed files with 131 additions and 23 deletions
|
|
@ -315,6 +315,22 @@ static bool remote_caption_backlight(void)
|
|||
return set_bool((char *)str(LANG_CAPTION_BACKLIGHT),
|
||||
&global_settings.remote_caption_backlight);
|
||||
}
|
||||
|
||||
#ifdef HAS_REMOTE_BUTTON_HOLD
|
||||
static bool remote_backlight_on_button_hold(void)
|
||||
{
|
||||
static const struct opt_items names[3] = {
|
||||
{ STR(LANG_BACKLIGHT_ON_BUTTON_HOLD_NORMAL) },
|
||||
{ STR(LANG_OFF) },
|
||||
{ STR(LANG_ON) },
|
||||
};
|
||||
return set_option(str(LANG_BACKLIGHT_ON_BUTTON_HOLD),
|
||||
&global_settings.remote_backlight_on_button_hold,
|
||||
INT, names, 3,
|
||||
remote_backlight_set_on_button_hold);
|
||||
}
|
||||
#endif /* HAS_BUTTON_HOLD */
|
||||
|
||||
#endif /* HAVE_REMOTE_LCD */
|
||||
|
||||
#ifdef HAVE_LCD_CONTRAST
|
||||
|
|
@ -1886,6 +1902,9 @@ static bool lcd_remote_settings_menu(void)
|
|||
#ifdef CONFIG_CHARGING
|
||||
{ ID2P(LANG_BACKLIGHT_ON_WHEN_CHARGING),
|
||||
remote_backlight_timer_plugged },
|
||||
#endif
|
||||
#ifdef HAS_REMOTE_BUTTON_HOLD
|
||||
{ ID2P(LANG_BACKLIGHT_ON_BUTTON_HOLD), remote_backlight_on_button_hold },
|
||||
#endif
|
||||
{ ID2P(LANG_CAPTION_BACKLIGHT), remote_caption_backlight },
|
||||
{ ID2P(LANG_BACKLIGHT_FILTER_FIRST_KEYPRESS), set_remote_bl_filter_first_keypress },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue