diff options
Diffstat (limited to 'apps/plugins/rockboy/menu.c')
-rw-r--r-- | apps/plugins/rockboy/menu.c | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/apps/plugins/rockboy/menu.c b/apps/plugins/rockboy/menu.c index ec72d5e4e9..ab27f3dece 100644 --- a/apps/plugins/rockboy/menu.c +++ b/apps/plugins/rockboy/menu.c | |||
@@ -4,6 +4,7 @@ | |||
4 | /* Note: this file only exposes one function: do_user_menu(). */ | 4 | /* Note: this file only exposes one function: do_user_menu(). */ |
5 | /*********************************************************************/ | 5 | /*********************************************************************/ |
6 | 6 | ||
7 | #include "lib/helper.h" | ||
7 | #include "button.h" | 8 | #include "button.h" |
8 | #include "rockmacros.h" | 9 | #include "rockmacros.h" |
9 | #include "mem.h" | 10 | #include "mem.h" |
@@ -46,18 +47,18 @@ static int getbutton(char *text) | |||
46 | 47 | ||
47 | static void setupkeys(void) | 48 | static void setupkeys(void) |
48 | { | 49 | { |
49 | options.UP=getbutton ("Press Up"); | 50 | options.UP = getbutton("Press Up"); |
50 | options.DOWN=getbutton ("Press Down"); | 51 | options.DOWN = getbutton("Press Down"); |
51 | options.LEFT=getbutton ("Press Left"); | 52 | options.LEFT = getbutton("Press Left"); |
52 | options.RIGHT=getbutton ("Press Right"); | 53 | options.RIGHT = getbutton("Press Right"); |
53 | 54 | ||
54 | options.A=getbutton ("Press A"); | 55 | options.A = getbutton("Press A"); |
55 | options.B=getbutton ("Press B"); | 56 | options.B = getbutton("Press B"); |
56 | 57 | ||
57 | options.START=getbutton ("Press Start"); | 58 | options.START = getbutton("Press Start"); |
58 | options.SELECT=getbutton("Press Select"); | 59 | options.SELECT = getbutton("Press Select"); |
59 | 60 | ||
60 | options.MENU=getbutton ("Press Menu"); | 61 | options.MENU = getbutton("Press Menu"); |
61 | } | 62 | } |
62 | 63 | ||
63 | /* | 64 | /* |
@@ -80,6 +81,8 @@ int do_user_menu(void) { | |||
80 | rb->lcd_set_mode(LCD_MODE_RGB565); | 81 | rb->lcd_set_mode(LCD_MODE_RGB565); |
81 | #endif | 82 | #endif |
82 | 83 | ||
84 | backlight_use_settings(); | ||
85 | |||
83 | /* Clean out the button Queue */ | 86 | /* Clean out the button Queue */ |
84 | while (rb->button_get(false) != BUTTON_NONE) | 87 | while (rb->button_get(false) != BUTTON_NONE) |
85 | rb->yield(); | 88 | rb->yield(); |
@@ -128,6 +131,9 @@ int do_user_menu(void) { | |||
128 | rb->lcd_set_mode(LCD_MODE_PAL256); | 131 | rb->lcd_set_mode(LCD_MODE_PAL256); |
129 | #endif | 132 | #endif |
130 | 133 | ||
134 | /* ignore backlight time out */ | ||
135 | backlight_force_on(); | ||
136 | |||
131 | return ret; | 137 | return ret; |
132 | } | 138 | } |
133 | 139 | ||