diff options
author | Doug Zongker <dougz@android.com> | 2009-06-09 21:22:33 +0200 |
---|---|---|
committer | Doug Zongker <dougz@android.com> | 2009-06-11 23:50:33 +0200 |
commit | ddd6a2865db5c73a4bb9d486f71a8c2f1f96ec69 (patch) | |
tree | a991238ca9fd1299d295d6229df882585ca0c659 /ui.c | |
parent | am 9b9c2114: Merge change 3514 into donut (diff) | |
download | android_bootable_recovery-ddd6a2865db5c73a4bb9d486f71a8c2f1f96ec69.tar android_bootable_recovery-ddd6a2865db5c73a4bb9d486f71a8c2f1f96ec69.tar.gz android_bootable_recovery-ddd6a2865db5c73a4bb9d486f71a8c2f1f96ec69.tar.bz2 android_bootable_recovery-ddd6a2865db5c73a4bb9d486f71a8c2f1f96ec69.tar.lz android_bootable_recovery-ddd6a2865db5c73a4bb9d486f71a8c2f1f96ec69.tar.xz android_bootable_recovery-ddd6a2865db5c73a4bb9d486f71a8c2f1f96ec69.tar.zst android_bootable_recovery-ddd6a2865db5c73a4bb9d486f71a8c2f1f96ec69.zip |
Diffstat (limited to '')
-rw-r--r-- | ui.c | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -307,20 +307,14 @@ static void *input_thread(void *cookie) } pthread_mutex_unlock(&key_queue_mutex); - // Alt+L or Home+End: toggle log display - int alt = key_pressed[KEY_LEFTALT] || key_pressed[KEY_RIGHTALT]; - if ((alt && ev.code == KEY_L && ev.value > 0) || - (key_pressed[KEY_HOME] && ev.code == KEY_END && ev.value > 0)) { + if (ev.value > 0 && device_toggle_display(key_pressed, ev.code)) { pthread_mutex_lock(&gUpdateMutex); show_text = !show_text; update_screen_locked(); pthread_mutex_unlock(&gUpdateMutex); } - // Green+Menu+Red: reboot immediately - if (ev.code == KEY_DREAM_RED && - key_pressed[KEY_DREAM_MENU] && - key_pressed[KEY_DREAM_GREEN]) { + if (ev.value > 0 && device_reboot_now(key_pressed, ev.code)) { reboot(RB_AUTOBOOT); } } |