1 | /*
|
---|
2 | * Keymap for US MF-2 keyboard. + Polish national letters.
|
---|
3 | * Modified by Antek Sawicki <tenox@tenox.tc>
|
---|
4 | * Charset: ISO-8859-2 - [Polska Norma PN-93 T-42118]
|
---|
5 | */
|
---|
6 |
|
---|
7 |
|
---|
8 | u16_t keymap[NR_SCAN_CODES * MAP_COLS] = {
|
---|
9 |
|
---|
10 | /* scan-code !Shift Shift Alt1 Alt2 Alt+Sh Ctrl */
|
---|
11 | /* ==================================================================== */
|
---|
12 | /* 00 - none */ 0, 0, 0, 0, 0, 0,
|
---|
13 | /* 01 - ESC */ C('['), C('['), CA('['),CA('['),CA('['),C('['),
|
---|
14 | /* 02 - '1' */ '1', '!', A('1'), A('1'), A('!'), C('A'),
|
---|
15 | /* 03 - '2' */ '2', '@', A('2'), A('2'), A('@'), C('@'),
|
---|
16 | /* 04 - '3' */ '3', '#', A('3'), A('3'), A('#'), C('C'),
|
---|
17 | /* 05 - '4' */ '4', '$', A('4'), A('4'), A('$'), C('D'),
|
---|
18 | /* 06 - '5' */ '5', '%', A('5'), A('5'), A('%'), C('E'),
|
---|
19 | /* 07 - '6' */ '6', '^', A('6'), A('6'), A('^'), C('^'),
|
---|
20 | /* 08 - '7' */ '7', '&', A('7'), A('7'), A('&'), C('G'),
|
---|
21 | /* 09 - '8' */ '8', '*', A('8'), A('8'), A('*'), C('H'),
|
---|
22 | /* 10 - '9' */ '9', '(', A('9'), A('9'), A('('), C('I'),
|
---|
23 | /* 11 - '0' */ '0', ')', A('0'), A('0'), A(')'), C('@'),
|
---|
24 | /* 12 - '-' */ '-', '_', A('-'), A('-'), A('_'), C('_'),
|
---|
25 | /* 13 - '=' */ '=', '+', A('='), A('='), A('+'), C('@'),
|
---|
26 | /* 14 - BS */ C('H'), C('H'), CA('H'),CA('H'),CA('H'),0177,
|
---|
27 | /* 15 - TAB */ C('I'), C('I'), CA('I'),CA('I'),CA('I'),C('I'),
|
---|
28 | /* 16 - 'q' */ L('q'), 'Q', A('q'), A('q'), A('Q'), C('Q'),
|
---|
29 | /* 17 - 'w' */ L('w'), 'W', A('w'), A('w'), A('W'), C('W'),
|
---|
30 | /* 18 - 'e' */ L('e'), 'E', A(0xea),A(0xea),A(0xca),C('E'),
|
---|
31 | /* 19 - 'r' */ L('r'), 'R', A('r'), A('r'), A('R'), C('R'),
|
---|
32 | /* 20 - 't' */ L('t'), 'T', A('t'), A('t'), A('T'), C('T'),
|
---|
33 | /* 21 - 'y' */ L('y'), 'Y', A('y'), A('y'), A('Y'), C('Y'),
|
---|
34 | /* 22 - 'u' */ L('u'), 'U', A('u'), A('u'), A('U'), C('U'),
|
---|
35 | /* 23 - 'i' */ L('i'), 'I', A('i'), A('i'), A('I'), C('I'),
|
---|
36 | /* 24 - 'o' */ L('o'), 'O', A(0xf3),A(0xf3),A(0xd3),C('O'),
|
---|
37 | /* 25 - 'p' */ L('p'), 'P', A('p'), A('p'), A('P'), C('P'),
|
---|
38 | /* 26 - '[' */ '[', '{', A('['), A('['), A('{'), C('['),
|
---|
39 | /* 27 - ']' */ ']', '}', A(']'), A(']'), A('}'), C(']'),
|
---|
40 | /* 28 - CR/LF */ C('M'), C('M'), CA('M'),CA('M'),CA('M'),C('J'),
|
---|
41 | /* 29 - Ctrl */ CTRL, CTRL, CTRL, CTRL, CTRL, CTRL,
|
---|
42 | /* 30 - 'a' */ L('a'), 'A', A(0xb1),A(0xb1),A(0xa1),C('A'),
|
---|
43 | /* 31 - 's' */ L('s'), 'S', A(0xb6),A(0xb6),A(0xa6),C('S'),
|
---|
44 | /* 32 - 'd' */ L('d'), 'D', A('d'), A('d'), A('D'), C('D'),
|
---|
45 | /* 33 - 'f' */ L('f'), 'F', A('f'), A('f'), A('F'), C('F'),
|
---|
46 | /* 34 - 'g' */ L('g'), 'G', A('g'), A('g'), A('G'), C('G'),
|
---|
47 | /* 35 - 'h' */ L('h'), 'H', A('h'), A('h'), A('H'), C('H'),
|
---|
48 | /* 36 - 'j' */ L('j'), 'J', A('j'), A('j'), A('J'), C('J'),
|
---|
49 | /* 37 - 'k' */ L('k'), 'K', A('k'), A('k'), A('K'), C('K'),
|
---|
50 | /* 38 - 'l' */ L('l'), 'L', A(0xb3),A(0xb3),A(0xa3),C('L'),
|
---|
51 | /* 39 - ';' */ ';', ':', A(';'), A(';'), A(':'), C('@'),
|
---|
52 | /* 40 - '\'' */ '\'', '"', A('\''),A('\''),A('"'), C('@'),
|
---|
53 | /* 41 - '`' */ '`', '~', A('`'), A('`'), A('~'), C('@'),
|
---|
54 | /* 42 - l. SHIFT*/ SHIFT, SHIFT, SHIFT, SHIFT, SHIFT, SHIFT,
|
---|
55 | /* 43 - '\\' */ '\\', '|', A('\\'),A('\\'),A('|'), C('\\'),
|
---|
56 | /* 44 - 'z' */ L('z'), 'Z', A(0xbf),A(0xbf),A(0xaf),C('Z'),
|
---|
57 | /* 45 - 'x' */ L('x'), 'X', A(0xbc),A(0xbc),A(0xac),C('X'),
|
---|
58 | /* 46 - 'c' */ L('c'), 'C', A(0xe6),A(0xe6),A(0xc6),C('C'),
|
---|
59 | /* 47 - 'v' */ L('v'), 'V', A('v'), A('v'), A('V'), C('V'),
|
---|
60 | /* 48 - 'b' */ L('b'), 'B', A('b'), A('b'), A('B'), C('B'),
|
---|
61 | /* 49 - 'n' */ L('n'), 'N', A(0xf1),A(0xf1),A(0xd1),C('N'),
|
---|
62 | /* 50 - 'm' */ L('m'), 'M', A('m'), A('m'), A('M'), C('M'),
|
---|
63 | /* 51 - ',' */ ',', '<', A(','), A(','), A('<'), C('@'),
|
---|
64 | /* 52 - '.' */ '.', '>', A('.'), A('.'), A('>'), C('@'),
|
---|
65 | /* 53 - '/' */ '/', '?', A('/'), A('/'), A('?'), C('@'),
|
---|
66 | /* 54 - r. SHIFT*/ SHIFT, SHIFT, SHIFT, SHIFT, SHIFT, SHIFT,
|
---|
67 | /* 55 - '*' */ '*', '*', A('*'), A('*'), A('*'), C('@'),
|
---|
68 | /* 56 - ALT */ ALT, ALT, ALT, ALT, ALT, ALT,
|
---|
69 | /* 57 - ' ' */ ' ', ' ', A(' '), A(' '), A(' '), C('@'),
|
---|
70 | /* 58 - CapsLck */ CALOCK, CALOCK, CALOCK, CALOCK, CALOCK, CALOCK,
|
---|
71 | /* 59 - F1 */ F1, SF1, AF1, AF1, ASF1, CF1,
|
---|
72 | /* 60 - F2 */ F2, SF2, AF2, AF2, ASF2, CF2,
|
---|
73 | /* 61 - F3 */ F3, SF3, AF3, AF3, ASF3, CF3,
|
---|
74 | /* 62 - F4 */ F4, SF4, AF4, AF4, ASF4, CF4,
|
---|
75 | /* 63 - F5 */ F5, SF5, AF5, AF5, ASF5, CF5,
|
---|
76 | /* 64 - F6 */ F6, SF6, AF6, AF6, ASF6, CF6,
|
---|
77 | /* 65 - F7 */ F7, SF7, AF7, AF7, ASF7, CF7,
|
---|
78 | /* 66 - F8 */ F8, SF8, AF8, AF8, ASF8, CF8,
|
---|
79 | /* 67 - F9 */ F9, SF9, AF9, AF9, ASF9, CF9,
|
---|
80 | /* 68 - F10 */ F10, SF10, AF10, AF10, ASF10, CF10,
|
---|
81 | /* 69 - NumLock */ NLOCK, NLOCK, NLOCK, NLOCK, NLOCK, NLOCK,
|
---|
82 | /* 70 - ScrLock */ SLOCK, SLOCK, SLOCK, SLOCK, SLOCK, SLOCK,
|
---|
83 | /* 71 - Home */ HOME, '7', AHOME, AHOME, A('7'), CHOME,
|
---|
84 | /* 72 - CurUp */ UP, '8', AUP, AUP, A('8'), CUP,
|
---|
85 | /* 73 - PgUp */ PGUP, '9', APGUP, APGUP, A('9'), CPGUP,
|
---|
86 | /* 74 - '-' */ NMIN, '-', ANMIN, ANMIN, A('-'), CNMIN,
|
---|
87 | /* 75 - Left */ LEFT, '4', ALEFT, ALEFT, A('4'), CLEFT,
|
---|
88 | /* 76 - MID */ MID, '5', AMID, AMID, A('5'), CMID,
|
---|
89 | /* 77 - Right */ RIGHT, '6', ARIGHT, ARIGHT, A('6'), CRIGHT,
|
---|
90 | /* 78 - '+' */ PLUS, '+', APLUS, APLUS, A('+'), CPLUS,
|
---|
91 | /* 79 - End */ END, '1', AEND, AEND, A('1'), CEND,
|
---|
92 | /* 80 - Down */ DOWN, '2', ADOWN, ADOWN, A('2'), CDOWN,
|
---|
93 | /* 81 - PgDown */ PGDN, '3', APGDN, APGDN, A('3'), CPGDN,
|
---|
94 | /* 82 - Insert */ INSRT, '0', AINSRT, AINSRT, A('0'), CINSRT,
|
---|
95 | /* 83 - Delete */ 0177, '.', A(0177),A(0177),A('.'), 0177,
|
---|
96 | /* 84 - Enter */ C('M'), C('M'), CA('M'),CA('M'),CA('M'),C('J'),
|
---|
97 | /* 85 - ??? */ 0, 0, 0, 0, 0, 0,
|
---|
98 | /* 86 - ??? */ '<', '>', A('<'), A('|'), A('>'), C('@'),
|
---|
99 | /* 87 - F11 */ F11, SF11, AF11, AF11, ASF11, CF11,
|
---|
100 | /* 88 - F12 */ F12, SF12, AF12, AF12, ASF12, CF12,
|
---|
101 | /* 89 - ??? */ 0, 0, 0, 0, 0, 0,
|
---|
102 | /* 90 - ??? */ 0, 0, 0, 0, 0, 0,
|
---|
103 | /* 91 - ??? */ 0, 0, 0, 0, 0, 0,
|
---|
104 | /* 92 - ??? */ 0, 0, 0, 0, 0, 0,
|
---|
105 | /* 93 - ??? */ 0, 0, 0, 0, 0, 0,
|
---|
106 | /* 94 - ??? */ 0, 0, 0, 0, 0, 0,
|
---|
107 | /* 95 - ??? */ 0, 0, 0, 0, 0, 0,
|
---|
108 | /* 96 - EXT_KEY */ EXTKEY, EXTKEY, EXTKEY, EXTKEY, EXTKEY, EXTKEY,
|
---|
109 | /* 97 - ??? */ 0, 0, 0, 0, 0, 0,
|
---|
110 | /* 98 - ??? */ 0, 0, 0, 0, 0, 0,
|
---|
111 | /* 99 - ??? */ 0, 0, 0, 0, 0, 0,
|
---|
112 | /*100 - ??? */ 0, 0, 0, 0, 0, 0,
|
---|
113 | /*101 - ??? */ 0, 0, 0, 0, 0, 0,
|
---|
114 | /*102 - ??? */ 0, 0, 0, 0, 0, 0,
|
---|
115 | /*103 - ??? */ 0, 0, 0, 0, 0, 0,
|
---|
116 | /*104 - ??? */ 0, 0, 0, 0, 0, 0,
|
---|
117 | /*105 - ??? */ 0, 0, 0, 0, 0, 0,
|
---|
118 | /*106 - ??? */ 0, 0, 0, 0, 0, 0,
|
---|
119 | /*107 - ??? */ 0, 0, 0, 0, 0, 0,
|
---|
120 | /*108 - ??? */ 0, 0, 0, 0, 0, 0,
|
---|
121 | /*109 - ??? */ 0, 0, 0, 0, 0, 0,
|
---|
122 | /*110 - ??? */ 0, 0, 0, 0, 0, 0,
|
---|
123 | /*111 - ??? */ 0, 0, 0, 0, 0, 0,
|
---|
124 | /*112 - ??? */ 0, 0, 0, 0, 0, 0,
|
---|
125 | /*113 - ??? */ 0, 0, 0, 0, 0, 0,
|
---|
126 | /*114 - ??? */ 0, 0, 0, 0, 0, 0,
|
---|
127 | /*115 - ??? */ 0, 0, 0, 0, 0, 0,
|
---|
128 | /*116 - ??? */ 0, 0, 0, 0, 0, 0,
|
---|
129 | /*117 - ??? */ 0, 0, 0, 0, 0, 0,
|
---|
130 | /*118 - ??? */ 0, 0, 0, 0, 0, 0,
|
---|
131 | /*119 - ??? */ 0, 0, 0, 0, 0, 0,
|
---|
132 | /*120 - ??? */ 0, 0, 0, 0, 0, 0,
|
---|
133 | /*121 - ??? */ 0, 0, 0, 0, 0, 0,
|
---|
134 | /*122 - ??? */ 0, 0, 0, 0, 0, 0,
|
---|
135 | /*123 - ??? */ 0, 0, 0, 0, 0, 0,
|
---|
136 | /*124 - ??? */ 0, 0, 0, 0, 0, 0,
|
---|
137 | /*125 - ??? */ 0, 0, 0, 0, 0, 0,
|
---|
138 | /*126 - ??? */ 0, 0, 0, 0, 0, 0,
|
---|
139 | /*127 - ??? */ 0, 0, 0, 0, 0, 0
|
---|
140 | };
|
---|