summaryrefslogtreecommitdiffstats
path: root/ui.h
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2013-09-04 22:44:38 +0200
committerDoug Zongker <dougz@google.com>2014-03-11 22:19:48 +0100
commit4db31d20c92d093e1bdc9499aeeddc1adc19b209 (patch)
tree4ca17c403f8756207d6b931fd2d4c1a8309bec6e /ui.h
parentMerge "change how recovery animation is implemented" (diff)
downloadandroid_bootable_recovery-4db31d20c92d093e1bdc9499aeeddc1adc19b209.tar
android_bootable_recovery-4db31d20c92d093e1bdc9499aeeddc1adc19b209.tar.gz
android_bootable_recovery-4db31d20c92d093e1bdc9499aeeddc1adc19b209.tar.bz2
android_bootable_recovery-4db31d20c92d093e1bdc9499aeeddc1adc19b209.tar.lz
android_bootable_recovery-4db31d20c92d093e1bdc9499aeeddc1adc19b209.tar.xz
android_bootable_recovery-4db31d20c92d093e1bdc9499aeeddc1adc19b209.tar.zst
android_bootable_recovery-4db31d20c92d093e1bdc9499aeeddc1adc19b209.zip
Diffstat (limited to 'ui.h')
-rw-r--r--ui.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/ui.h b/ui.h
index 6c8987a33..d85fc659b 100644
--- a/ui.h
+++ b/ui.h
@@ -77,7 +77,7 @@ class RecoveryUI {
// Return value indicates whether an immediate operation should be
// triggered (toggling the display, rebooting the device), or if
// the key should be enqueued for use by the main thread.
- enum KeyAction { ENQUEUE, TOGGLE, REBOOT, IGNORE };
+ enum KeyAction { ENQUEUE, TOGGLE, REBOOT, IGNORE, MOUNT_SYSTEM };
virtual KeyAction CheckKey(int key);
// Called immediately before each call to CheckKey(), tell you if
@@ -121,6 +121,10 @@ private:
int key_down_count; // under key_queue_mutex
int rel_sum;
+ int consecutive_power_keys;
+ int consecutive_alternate_keys;
+ int last_key;
+
typedef struct {
RecoveryUI* ui;
int key_code;