]> git.proxmox.com Git - mirror_edk2.git/commit - EmbeddedPkg/Include/Protocol/PlatformVirtualKeyboard.h
EmbeddedPkg/Drivers: add virtual keyboard driver
authorHaojian Zhuang <haojian.zhuang@linaro.org>
Thu, 8 Mar 2018 13:28:22 +0000 (21:28 +0800)
committerLeif Lindholm <leif.lindholm@linaro.org>
Mon, 30 Apr 2018 16:58:14 +0000 (17:58 +0100)
commit1df5fb2d83d9eca2d3b4b87fab7a0ec9f288cb6f
tree3560045ac9519f002e13f17a55ba461589b8307f
parent8fe18cba7694a1d95699a08ff2491ffa04b0661d
EmbeddedPkg/Drivers: add virtual keyboard driver

This driver is used to simulate a keyboard. For example, user
could read GPIO setting or data from RAM address. If the value
matches the expected pattern, it could trigger a key pressed
event.

User needs to implement hooks of PLATFORM_VIRTUAL_KBD_PROTOCOL.
There're 4 hooks in this protocol.
Register(): Quote the interface that user needs. For example, user
needs to locate GPIO protocol if he wants to simulate a GPIO value
as a key.
Reset(): Do the initialization before reading value.
Query(): Read value. If the value matches the expected pattern,
trigger a key pressed event.
Clear(): Clean the value if necessary.

Cc: Leif Lindholm <leif.lindholm@linaro.org>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
EmbeddedPkg/Drivers/VirtualKeyboardDxe/ComponentName.c [new file with mode: 0644]
EmbeddedPkg/Drivers/VirtualKeyboardDxe/ComponentName.h [new file with mode: 0644]
EmbeddedPkg/Drivers/VirtualKeyboardDxe/VirtualKeyboard.c [new file with mode: 0644]
EmbeddedPkg/Drivers/VirtualKeyboardDxe/VirtualKeyboard.h [new file with mode: 0644]
EmbeddedPkg/Drivers/VirtualKeyboardDxe/VirtualKeyboardDxe.inf [new file with mode: 0644]
EmbeddedPkg/EmbeddedPkg.dec
EmbeddedPkg/Include/Protocol/PlatformVirtualKeyboard.h [new file with mode: 0644]