diff options
Diffstat (limited to 'default_recovery_ui.c')
-rw-r--r-- | default_recovery_ui.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/default_recovery_ui.c b/default_recovery_ui.c index 7bc5f2c40..76fa43ea9 100644 --- a/default_recovery_ui.c +++ b/default_recovery_ui.c @@ -30,32 +30,32 @@ char* MENU_ITEMS[] = { "reboot system now", NULL }; int device_toggle_display(char* key_pressed, int key_code) { - return key_code == KEY_HOME; + return key_code == KEY_HOME; } int device_reboot_now(char* key_pressed, int key_code) { - return 0; + return 0; } int device_handle_key(int key_code, int visible) { - if (visible) { - switch (key_code) { - case KEY_DOWN: - case KEY_VOLUMEDOWN: - return HIGHLIGHT_DOWN; - - case KEY_UP: - case KEY_VOLUMEUP: - return HIGHLIGHT_UP; - - case KEY_ENTER: - return SELECT_ITEM; + if (visible) { + switch (key_code) { + case KEY_DOWN: + case KEY_VOLUMEDOWN: + return HIGHLIGHT_DOWN; + + case KEY_UP: + case KEY_VOLUMEUP: + return HIGHLIGHT_UP; + + case KEY_ENTER: + return SELECT_ITEM; + } } - } - return NO_ACTION; + return NO_ACTION; } -void device_perform_action(int which) { - // none defined +int device_perform_action(int which) { + return which; } |