summaryrefslogtreecommitdiff
path: root/apps/settings.h
diff options
context:
space:
mode:
authorWilliam Wilgus <me.theuser@yahoo.com>2016-11-22 06:21:31 +0100
committerWilliam Wilgus <me.theuser@yahoo.com>2017-01-17 23:06:17 +0100
commitdc87e9e9f3c383b63c3cb3713886a6c93b6a79d1 (patch)
tree47a6c0d49e7741f91fa74d7230b1267f60617902 /apps/settings.h
parent16a9f84571276a13f4cfd5c66db8cd63ce4e2e7f (diff)
downloadrockbox-dc87e9e9f3c383b63c3cb3713886a6c93b6a79d1.tar.gz
rockbox-dc87e9e9f3c383b63c3cb3713886a6c93b6a79d1.zip
Selective Backlight/Advanced Softlock - Selective actions based on context
Selective backlight allows the user to choose actions that will not enable the backlight when pressed. Advanced softlock allows user to choose actions that will not be blocked by screenlock on devices without a hold button. Both only occur in FM and WPS Contexts. Update: Back from the dead -Cleaned up code, removed unnecessary calls, re-arranged last filter action timeout conditional to work in case last_filtered_action_tick was never set -Added entries to the manual -Fixed back button on some menus not activating backlight -Made menus more intuitive, no actions selected now changes menu item to off. -Added talk fuctionality. -Added option to disable selective backlight while on external power. -Rewrote backlight and softlock handling code to fix issue with scrollwheels -Menu changed to have toggle(yes/no) and settings -Optimized selective actions lookup -Added option to disable notification of 'buttons locked' while softlocked -Removed uneeded code, consolidated action lookup to single function -Fixed incorrect name on selective softlock menu -Added option to disable touch on touchscreen devices -Fixed backlight on original screenlock without selective screenlock active -Added text selection in mask_select for when show_icons is off -Fixed voice in mask_select to speak if voice is defined instead of spelling -Added more lang defines (play skip seek) -Added option to disable unknown keys turning on backlight -Fixed Conditional argument In wrong place causing players without backlight to fail to build -Fixed Disable Unknown blocking detection of context change -Fixed canceling menu didn't update new settings -Added Autolock on backlight off -Removed backlight_on_force from backlight.c, Now sets ignore next to false and uses backlight_on -Cleaned up autolock code added strings to lang file -Fixed issue where rapid presses would bypass softlock -Removed old softlock code, Cleaned selective actions code -Changed menu to match existing RB menus -Fixed Backlight_on_Hold blocked by backlight_ignore_next -Fixed ignore_next for ipod -Fixed bug allowing context with softlock to bypass selective backlight -Changed mask_select to no longer prompt for changes to be saved -Changed menu names -Added ignore timeout to allow ipod scroll wheel to work properly and other players to still work properly, removed some previous code including ignore_event -Increased ignore timeout to prevent sd card accesses from interrupting action code and turning on backlight -Changed Unknown action to unmapped action in menu, changed handling code -Removed unneeded logic and variables for handling unfiltered actions -Reverted unmapped action code to previous functionality -Added manual entries (thanks JohnB) -Removed elusive unhandled unicode character from manual, changed formatting slightly Actions: Volume,Play,Seek,Skip Extras: Disable unmapped actions Disable selective backlight on external power Disable touch during softlock on touchscreen devices Disable softlock notifications (power button still notifies) Autolock on backlight off Method: Adds a function to ignore backlight on next call If selected action occurs backlight is forced on, Filter_first_keypress stays intact. Selective softlock allows selected actions through, bypasses the normal softlock routine. ToDo: DONE previous commit (#1) has attribution for folder_select.c which mask_select is based from. Change-Id: I08132ddcfd64c81751ef23b720f3ec6d68695fe4
Diffstat (limited to 'apps/settings.h')
-rw-r--r--apps/settings.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/apps/settings.h b/apps/settings.h
index e7388b4586..c79aeb37f4 100644
--- a/apps/settings.h
+++ b/apps/settings.h
@@ -529,7 +529,7 @@ struct user_settings
529 int statusbar; /* STATUSBAR_* enum values */ 529 int statusbar; /* STATUSBAR_* enum values */
530#ifdef HAVE_REMOTE_LCD 530#ifdef HAVE_REMOTE_LCD
531 int remote_statusbar; 531 int remote_statusbar;
532#endif 532#endif
533 533
534#if CONFIG_KEYPAD == RECORDER_PAD 534#if CONFIG_KEYPAD == RECORDER_PAD
535 bool buttonbar; /* 0=hide, 1=show */ 535 bool buttonbar; /* 0=hide, 1=show */
@@ -670,7 +670,13 @@ struct user_settings
670#if CONFIG_CHARGING 670#if CONFIG_CHARGING
671 int backlight_timeout_plugged; 671 int backlight_timeout_plugged;
672#endif 672#endif
673#ifndef HAS_BUTTON_HOLD
674 bool bt_selective_softlock_actions;
675 int bt_selective_softlock_actions_mask;
676#endif
673#ifdef HAVE_BACKLIGHT 677#ifdef HAVE_BACKLIGHT
678 bool bl_selective_actions; /* backlight disable on some actions */
679 int bl_selective_actions_mask;/* mask of actions that will not enable backlight */
674#ifdef HAS_BUTTON_HOLD 680#ifdef HAS_BUTTON_HOLD
675 int backlight_on_button_hold; /* what to do with backlight when hold 681 int backlight_on_button_hold; /* what to do with backlight when hold
676 switch is on */ 682 switch is on */
@@ -679,7 +685,8 @@ struct user_settings
679 int lcd_sleep_after_backlight_off; /* when to put lcd to sleep after backlight 685 int lcd_sleep_after_backlight_off; /* when to put lcd to sleep after backlight
680 has turned off */ 686 has turned off */
681#endif 687#endif
682#endif 688#endif /* HAVE_BACKLIGHT */
689
683#if defined(HAVE_BACKLIGHT_FADING_INT_SETTING) 690#if defined(HAVE_BACKLIGHT_FADING_INT_SETTING)
684 int backlight_fade_in; /* backlight fade in timing: 0..3 */ 691 int backlight_fade_in; /* backlight fade in timing: 0..3 */
685 int backlight_fade_out; /* backlight fade in timing: 0..7 */ 692 int backlight_fade_out; /* backlight fade in timing: 0..7 */
@@ -687,7 +694,7 @@ struct user_settings
687 bool backlight_fade_in; 694 bool backlight_fade_in;
688 bool backlight_fade_out; 695 bool backlight_fade_out;
689#endif 696#endif
690#ifdef HAVE_BACKLIGHT_BRIGHTNESS 697#ifdef HAVE_BACKLIGHT_BRIGHTNESS
691 int brightness; 698 int brightness;
692#endif 699#endif
693 700