1#include <efi.h>
2#include <efilib.h>
3
4EFI_STATUS
5efi_main (EFI_HANDLE image, EFI_SYSTEM_TABLE *systab)
6{
7	EFI_INPUT_KEY efi_input_key;
8	EFI_STATUS efi_status;
9
10	InitializeLib(image, systab);
11
12	Print(L"HelloLib application started\n");
13
14	Print(L"\n\n\nHit any key to exit this image\n");
15	WaitForSingleEvent(ST->ConIn->WaitForKey, 0);
16
17	uefi_call_wrapper(ST->ConOut->OutputString, 2, ST->ConOut, L"\n\n");
18
19	efi_status = uefi_call_wrapper(ST->ConIn->ReadKeyStroke, 2, ST->ConIn, &efi_input_key);
20
21	Print(L"ScanCode: %xh  UnicodeChar: %xh\n",
22		efi_input_key.ScanCode, efi_input_key.UnicodeChar);
23
24	return EFI_SUCCESS;
25}
26