wm: teppich

Download patch

ref: 91bae667fa4bb7089069694306e62b7b845560f5
parent: b9d66bc012e6a431a75bf4d9a138cf6c2a8eb6f6
author: mkf <mkf@cloud9p.org>
date: Fri Nov 24 03:46:48 EST 2023

kern/ps2: add some sort shift

--- a/include/ps2.h
+++ b/include/ps2.h
@@ -1,23 +1,26 @@
 #pragma once
-#define KB 0x60
 
-static char keymap[128] = {
-	"\0\x1b""1234567890-=\b\t"
-	"qwertyuiop[]\r\0as"
-	"dfghjkl;'`\0\\zxcv"
-	"bnm,./\0*\0 \0\0\0\0\0\0"
-	"\0\0\0\0\0\0\0""789-456+1"
-	"230."
-};
+#define KBD 0x60
+#define KBC 0x64
 
-static char shifted_kbmap[128] =
+static char keymap[2][128] = 
 {
-	"\0\x1b""!@#$%^&*()_+\b\t"
-	"QWERTYUIOP{}\r\0AS"
-	"DFGHJKL:\"~\0|ZXCV"
-	"BNM<>?\0\0\0 \0\0\0\0\0\0"
-	"\0\0\0\0\0\0\0""789-456+1"
-	"230."
+	{
+		"\0\x1b""1234567890-=\b\t"
+		"qwertyuiop[]\r\0as"
+		"dfghjkl;'`\0\\zxcv"
+		"bnm,./\0*\0 \0\0\0\0\0\0"
+		"\0\0\0\0\0\0\0""789-456+1"
+		"230."
+	},
+	{
+		"\0\x1b""!@#$%^&*()_+\b\t"
+		"QWERTYUIOP{}\r\0AS"
+		"DFGHJKL:\"~\0|ZXCV"
+		"BNM<>?\0\0\0 \0\0\0\0\0\0"
+		"\0\0\0\0\0\0\0""789-456+1"
+		"230."
+	},
 };
 
 enum KB_CTR_CMD
@@ -53,8 +56,6 @@
 	TEST_ERR1 = 0xFC, /* either of which may happen */
 	TEST_ERR2 = 0xFD,
 };
-
-/* minix's input.h, Bedankt anderw, heel gaaf!  */
 
 char ps2_getc(void);
 void ps2_init(void);