aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2015-03-11 19:18:59 +0100
committerAlex Auvolat <alex@adnab.me>2015-03-11 19:18:59 +0100
commit50b5427a8edbb8d59215334f5a250e7f8d6d7ca7 (patch)
tree7263505b2a6145256ce1f494108a4ceb853c4de0 /src/common
parent0b76aff59b586d87ee0449bc7deda878f4633515 (diff)
downloadkogata-50b5427a8edbb8d59215334f5a250e7f8d6d7ca7.tar.gz
kogata-50b5427a8edbb8d59215334f5a250e7f8d6d7ca7.zip
Add keyboard handling code. New font thanks to Muazzam from OSDev!
Diffstat (limited to 'src/common')
-rw-r--r--src/common/include/proto/keyboard.h20
1 files changed, 19 insertions, 1 deletions
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 :*/