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:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user