X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=converter%2Fxt_usb%2Fmatrix.c;h=1123b11f24d9e4ff93d82bfabeae88e28afba33e;hb=527bdbbcbddc51b22c4fb210889998d550544189;hp=fe4eebf3e1bde471a4abeabbd6ed0ad957f229a2;hpb=78af06b936cf3dbcee4777b4f7c7a023f87f3056;p=max%2Ftmk_keyboard.git diff --git a/converter/xt_usb/matrix.c b/converter/xt_usb/matrix.c index fe4eebf3..1123b11f 100644 --- a/converter/xt_usb/matrix.c +++ b/converter/xt_usb/matrix.c @@ -48,15 +48,14 @@ void matrix_init(void) // convert E0-escaped codes into unused area static uint8_t move_e0code(uint8_t code) { switch(code) { - // Original IBM XT keyboard has these keys + // Original IBM XT keyboard doesn't use E0-codes probably + // Some XT compatilble keyobards need these keys? + // http://download.microsoft.com/download/1/6/1/161ba512-40e2-4cc9-843a-923143f3456c/translate.pdf + // https://download.microsoft.com/download/1/6/1/161ba512-40e2-4cc9-843a-923143f3456c/scancode.doc case 0x37: return 0x54; // Print Screen case 0x46: return 0x55; // Ctrl + Pause case 0x1C: return 0x6F; // Keypad Enter case 0x35: return 0x7F; // Keypad / - - // Any XT keyobard with these keys? - // http://download.microsoft.com/download/1/6/1/161ba512-40e2-4cc9-843a-923143f3456c/translate.pdf - // https://download.microsoft.com/download/1/6/1/161ba512-40e2-4cc9-843a-923143f3456c/scancode.doc case 0x5B: return 0x5A; // Left GUI case 0x5C: return 0x5B; // Right GUI case 0x5D: return 0x5C; // Application @@ -92,7 +91,7 @@ uint8_t matrix_scan(void) uint8_t code = xt_host_recv(); if (!code) return 0; - xprintf("%02X ", code); + dprintf("%02X ", code); switch (state) { case INIT: switch (code) {