move key processing to RecoveryUI

Move the key for handling keys from ScreenRecoveryUI to RecoveryUI, so
it can be used by devices without screens.  Remove the UIParameters
struct and replace it with some new member variables in
ScreenRecoveryUI.

Change-Id: I70094ecbc4acbf76ce44d5b5ec2036c36bdc3414
This commit is contained in:
Doug Zongker
2011-11-01 11:00:20 -07:00
parent daefc1d442
commit 32a0a47a59
8 changed files with 299 additions and 272 deletions
-5
View File
@@ -84,11 +84,6 @@ class FakeUI : public RecoveryUI {
fputs(buf, stderr);
}
int WaitKey() { return 0; }
bool IsKeyPressed(int key) { return false; }
void FlushKeys() { }
KeyAction CheckKey(int key) { return ENQUEUE; }
void StartMenu(const char* const * headers, const char* const * items,
int initial_selection) { }
int SelectMenu(int sel) { return 0; }