diff options
author | Joursoir <chat@joursoir.net> | 2022-04-24 19:30:43 +0300 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2022-04-24 19:31:08 +0300 |
commit | c878c061227017e98014f847a0b413026b596999 (patch) | |
tree | 371340fb96eaaf30eb045ef3f77598a925639d2f /UefiMonitorTest/UefiMonitorTest.c | |
parent | 87e0417eaf431d0d1bab9537bd9a9ed33c91e5d3 (diff) | |
download | umt-c878c061227017e98014f847a0b413026b596999.tar.gz umt-c878c061227017e98014f847a0b413026b596999.tar.bz2 umt-c878c061227017e98014f847a0b413026b596999.zip |
main: add a keyboard context to a graphics context
Diffstat (limited to 'UefiMonitorTest/UefiMonitorTest.c')
-rw-r--r-- | UefiMonitorTest/UefiMonitorTest.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/UefiMonitorTest/UefiMonitorTest.c b/UefiMonitorTest/UefiMonitorTest.c index 92e5799..679eed9 100644 --- a/UefiMonitorTest/UefiMonitorTest.c +++ b/UefiMonitorTest/UefiMonitorTest.c @@ -193,6 +193,17 @@ PrepareGraphicsInfo ( Graphics->PixelWidth = PixelWidth; Graphics->Pitch = Gop->Mode->Info->PixelsPerScanLine; + // Find TextInEx in System Table ConsoleInHandle + Status = gBS->HandleProtocol ( + gST->ConsoleInHandle, + &gEfiSimpleTextInputExProtocolGuid, + (VOID **)&Graphics->TextInputEx + ); + if (EFI_ERROR (Status)) { + FreePool (Graphics->BackBuffer); + return Status; + } + // Find mouse in System Table ConsoleInHandle Status = gBS->HandleProtocol ( gST->ConsoleInHandle, |