summaryrefslogtreecommitdiff
path: root/payloads/libpayload/include
diff options
context:
space:
mode:
authorPatrick Rudolph <siro@das-labor.org>2017-03-05 17:29:18 +0100
committerMartin Roth <martinroth@google.com>2018-05-31 15:31:47 +0000
commitae2cb2d3bf97983d886545b63b547034d360f593 (patch)
treed5f5c580ee7d94a640046149910d9312dadc10f8 /payloads/libpayload/include
parent1f5ebf7c8b1cf1724524b02900c230961f039370 (diff)
downloadcoreboot-ae2cb2d3bf97983d886545b63b547034d360f593.tar.xz
libpayload-x86: Export keyboard modifiers
Add function to get active keyboard modifiers. Change-Id: Ifc7bd4aa86f20d67c5b542d0458b966e605c5499 Signed-off-by: Patrick Rudolph <siro@das-labor.org> Reviewed-on: https://review.coreboot.org/18601 Reviewed-by: Martin Roth <martinroth@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'payloads/libpayload/include')
-rw-r--r--payloads/libpayload/include/libpayload.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/payloads/libpayload/include/libpayload.h b/payloads/libpayload/include/libpayload.h
index e74006a90f..359bd0e4ce 100644
--- a/payloads/libpayload/include/libpayload.h
+++ b/payloads/libpayload/include/libpayload.h
@@ -163,6 +163,14 @@ int keyboard_havechar(void);
unsigned char keyboard_get_scancode(void);
int keyboard_getchar(void);
int keyboard_set_layout(char *country);
+int keyboard_getmodifier(void);
+
+enum KEYBOARD_MODIFIERS {
+ KB_MOD_SHIFT = (1 << 0),
+ KB_MOD_ALT = (1 << 1),
+ KB_MOD_CTRL = (1 << 2),
+ KB_MOD_CAPSLOCK = (1 << 3),
+};
/** @} */
/**