summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/Workspace/DecBuildData.py
diff options
context:
space:
mode:
authorHaojian Zhuang <haojian.zhuang@linaro.org>2018-03-08 21:28:22 +0800
committerLeif Lindholm <leif.lindholm@linaro.org>2018-04-30 17:58:14 +0100
commit1df5fb2d83d9eca2d3b4b87fab7a0ec9f288cb6f (patch)
tree3560045ac9519f002e13f17a55ba461589b8307f /BaseTools/Source/Python/Workspace/DecBuildData.py
parent8fe18cba7694a1d95699a08ff2491ffa04b0661d (diff)
downloadedk2-1df5fb2d83d9eca2d3b4b87fab7a0ec9f288cb6f.tar.gz
edk2-1df5fb2d83d9eca2d3b4b87fab7a0ec9f288cb6f.tar.bz2
edk2-1df5fb2d83d9eca2d3b4b87fab7a0ec9f288cb6f.zip
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>
Diffstat (limited to 'BaseTools/Source/Python/Workspace/DecBuildData.py')
0 files changed, 0 insertions, 0 deletions