Subversion Repositories HelenOS

Rev

Rev 2726 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2726 vana 1
#include <efi.h>
2
#include <efilib.h>
3
 
4
EFI_STATUS
5
efi_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
    ST->ConOut->OutputString(ST->ConOut, L"\n\n");
18
 
19
    efi_status = ST->ConIn->ReadKeyStroke(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
}