diff options
author | Elliott Hughes <enh@google.com> | 2015-04-13 22:24:42 +0200 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-04-13 22:24:42 +0200 |
commit | d7823c5dfed67b1e8b0e175e588fb2dc643ebc65 (patch) | |
tree | 9c50497f0d82bb99eed807a84715b827a7d07a73 /ui.h | |
parent | am b68c4fc4: Merge "Treat KEY_ENTER the same as KEY_POWER in the pager." (diff) | |
parent | Merge "Remove unnecessary globals." (diff) | |
download | android_bootable_recovery-d7823c5dfed67b1e8b0e175e588fb2dc643ebc65.tar android_bootable_recovery-d7823c5dfed67b1e8b0e175e588fb2dc643ebc65.tar.gz android_bootable_recovery-d7823c5dfed67b1e8b0e175e588fb2dc643ebc65.tar.bz2 android_bootable_recovery-d7823c5dfed67b1e8b0e175e588fb2dc643ebc65.tar.lz android_bootable_recovery-d7823c5dfed67b1e8b0e175e588fb2dc643ebc65.tar.xz android_bootable_recovery-d7823c5dfed67b1e8b0e175e588fb2dc643ebc65.tar.zst android_bootable_recovery-d7823c5dfed67b1e8b0e175e588fb2dc643ebc65.zip |
Diffstat (limited to 'ui.h')
-rw-r--r-- | ui.h | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -147,14 +147,15 @@ private: int count; }; - pthread_t input_t; + pthread_t input_thread_; void OnKeyDetected(int key_code); - static void* input_thread(void* cookie); - static int input_callback(int fd, uint32_t epevents, void* data); - void process_key(int key_code, int updown); - bool usb_connected(); + static int InputCallback(int fd, uint32_t epevents, void* data); + int OnInputEvent(int fd, uint32_t epevents); + void ProcessKey(int key_code, int updown); + + bool IsUsbConnected(); static void* time_key_helper(void* cookie); void time_key(int key_code, int count); |