aboutsummaryrefslogtreecommitdiffstats
path: root/com32/menu
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2014-04-20 11:17:32 -0700
committerH. Peter Anvin <hpa@zytor.com>2014-04-20 11:19:25 -0700
commit61b98d65c9695200fe82570a999e29068a950d42 (patch)
tree6c8a073706b98c2becc0a43a7c3321d398e927c1 /com32/menu
parentfdad168405fd97471f5086dee84b2ebe14e314d3 (diff)
downloadsyslinux-61b98d65c9695200fe82570a999e29068a950d42.tar.gz
syslinux-61b98d65c9695200fe82570a999e29068a950d42.tar.xz
syslinux-61b98d65c9695200fe82570a999e29068a950d42.zip
kbd: Make getting the keyboard shift state a firmware method
Getting the keyboard shift state is a firmware method. It is unfortunately unclear if it is even possible on EFI. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/menu')
-rw-r--r--com32/menu/menumain.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/com32/menu/menumain.c b/com32/menu/menumain.c
index fc1376eb..1d239a7f 100644
--- a/com32/menu/menumain.c
+++ b/com32/menu/menumain.c
@@ -611,17 +611,7 @@ static const char *edit_cmdline(const char *input, int top)
static inline int shift_is_held(void)
{
-#ifdef __FIRMWARE_BIOS__
- com32sys_t reg;
-
- memset(&reg, 0, sizeof reg);
- reg.eax.b[1] = 0x02;
- __intcall(0x16, &reg, &reg);
-
- return !!(reg.eax.b[0] & 0x5d); /* Caps/Scroll/Alt/Shift */
-#else
- return 0; /* Need to implement this */
-#endif
+ return !!(kbd_shiftflags() & 0x5d); /* Caps/Scroll/Alt/Shift */
}
static void print_timeout_message(int tol, int row, const char *msg)