summaryrefslogtreecommitdiffstats
path: root/recovery_ui/include
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2019-06-15 00:35:31 +0200
committerTianjie Xu <xunchang@google.com>2019-07-10 01:47:07 +0200
commitb8a959b00fe57fc431034f9bea3c7b3380d4b6a5 (patch)
treedbe96a31cb6b275b6c56c16872ec1acd5b1592d9 /recovery_ui/include
parentMerge "minadbd: delete unnecessary fdevent.h include." (diff)
downloadandroid_bootable_recovery-b8a959b00fe57fc431034f9bea3c7b3380d4b6a5.tar
android_bootable_recovery-b8a959b00fe57fc431034f9bea3c7b3380d4b6a5.tar.gz
android_bootable_recovery-b8a959b00fe57fc431034f9bea3c7b3380d4b6a5.tar.bz2
android_bootable_recovery-b8a959b00fe57fc431034f9bea3c7b3380d4b6a5.tar.lz
android_bootable_recovery-b8a959b00fe57fc431034f9bea3c7b3380d4b6a5.tar.xz
android_bootable_recovery-b8a959b00fe57fc431034f9bea3c7b3380d4b6a5.tar.zst
android_bootable_recovery-b8a959b00fe57fc431034f9bea3c7b3380d4b6a5.zip
Diffstat (limited to 'recovery_ui/include')
-rw-r--r--recovery_ui/include/recovery_ui/ui.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/recovery_ui/include/recovery_ui/ui.h b/recovery_ui/include/recovery_ui/ui.h
index 797e2f0d5..0b29c29f1 100644
--- a/recovery_ui/include/recovery_ui/ui.h
+++ b/recovery_ui/include/recovery_ui/ui.h
@@ -230,18 +230,22 @@ class RecoveryUI {
bool InitScreensaver();
void SetScreensaverState(ScreensaverState state);
+
// Key event input queue
std::mutex key_queue_mutex;
std::condition_variable key_queue_cond;
bool key_interrupted_;
int key_queue[256], key_queue_len;
- char key_pressed[KEY_MAX + 1]; // under key_queue_mutex
- int key_last_down; // under key_queue_mutex
- bool key_long_press; // under key_queue_mutex
- int key_down_count; // under key_queue_mutex
- bool enable_reboot; // under key_queue_mutex
- int rel_sum;
+ // key press events
+ std::mutex key_press_mutex;
+ char key_pressed[KEY_MAX + 1];
+ int key_last_down;
+ bool key_long_press;
+ int key_down_count;
+ bool enable_reboot;
+
+ int rel_sum;
int consecutive_power_keys;
int last_key;