From 50b5427a8edbb8d59215334f5a250e7f8d6d7ca7 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 11 Mar 2015 19:18:59 +0100 Subject: Add keyboard handling code. New font thanks to Muazzam from OSDev! --- src/common/include/proto/keyboard.h | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'src/common/include') diff --git a/src/common/include/proto/keyboard.h b/src/common/include/proto/keyboard.h index 8d9543f..c7a2ef8 100644 --- a/src/common/include/proto/keyboard.h +++ b/src/common/include/proto/keyboard.h @@ -36,7 +36,8 @@ typedef struct { #define KBD_CODE_RCTRL 157 #define KBD_CODE_LALT 56 #define KBD_CODE_RALT 184 -#define KBD_CODE_SUPER 219 +#define KBD_CODE_LSUPER 219 +#define KBD_CODE_RSUPER 220 #define KBD_CODE_MENU 221 #define KBD_CODE_TAB 15 #define KBD_CODE_INS 210 @@ -55,4 +56,21 @@ typedef struct { #define KBD_CODE_F11 87 #define KBD_CODE_F12 88 +#define KBD_CODE_NUMLOCK 69 +#define KBD_CODE_SCRLLOCK 70 +#define KBD_CODE_PRTSCN 183 +#define KBD_CODE_SYSREQ 84 + +#define KBD_CODE_KPHOME 71 +#define KBD_CODE_KPUP 72 +#define KBD_CODE_KPPGUP 73 +#define KBD_CODE_KPLEFT 75 +#define KBD_CODE_KP5 76 +#define KBD_CODE_KPRIGHT 77 +#define KBD_CODE_KPEND 79 +#define KBD_CODE_KPDOWN 80 +#define KBD_CODE_KPPGDOWN 81 +#define KBD_CODE_KPINS 82 +#define KBD_CODE_KPDEL 83 + /* vim: set ts=4 sw=4 tw=0 noet :*/ -- cgit v1.2.3