aboutsummaryrefslogtreecommitdiffstats
path: root/ui.h
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-04-10 15:00:34 -0700
committerElliott Hughes <enh@google.com>2015-04-10 15:14:35 -0700
commit4af215b2c35b41e983753256ad6dbebbf879c982 (patch)
treef327758d07cdb58a8e4a06f236f82f8df9515992 /ui.h
parent51697d2781501c30d8db6d2a8e6c2becebcffad8 (diff)
downloadbootable_recovery-4af215b2c35b41e983753256ad6dbebbf879c982.zip
bootable_recovery-4af215b2c35b41e983753256ad6dbebbf879c982.tar.gz
bootable_recovery-4af215b2c35b41e983753256ad6dbebbf879c982.tar.bz2
Auto-detect whether to use the long-press UI.
Change-Id: Ie77a5584e301467c6a5e164d2c62d6f036b2c0c0
Diffstat (limited to 'ui.h')
-rw-r--r--ui.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui.h b/ui.h
index 0d5ab55..c5c65c2 100644
--- a/ui.h
+++ b/ui.h
@@ -75,6 +75,10 @@ class RecoveryUI {
virtual bool IsKeyPressed(int key);
virtual bool IsLongPress();
+ // Returns true if you have the volume up/down and power trio typical
+ // of phones and tablets, false otherwise.
+ virtual bool HasThreeButtons();
+
// Erase any queued-up keys.
virtual void FlushKeys();