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@android.com>2013-09-05 00:02:29 +0200
commit9e805d6ca0101f6bfc458e5c1e9b48fecb495a72 (patch)
tree245f36ae41f95e64faca59401ff6ccc0394d9c76 /ui.h
parentam f187a543: am 3b5a987c: recovery: fix use of init reboot method (diff)
downloadandroid_bootable_recovery-9e805d6ca0101f6bfc458e5c1e9b48fecb495a72.tar
android_bootable_recovery-9e805d6ca0101f6bfc458e5c1e9b48fecb495a72.tar.gz
android_bootable_recovery-9e805d6ca0101f6bfc458e5c1e9b48fecb495a72.tar.bz2
android_bootable_recovery-9e805d6ca0101f6bfc458e5c1e9b48fecb495a72.tar.lz
android_bootable_recovery-9e805d6ca0101f6bfc458e5c1e9b48fecb495a72.tar.xz
android_bootable_recovery-9e805d6ca0101f6bfc458e5c1e9b48fecb495a72.tar.zst
android_bootable_recovery-9e805d6ca0101f6bfc458e5c1e9b48fecb495a72.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;