forked from podstawek/key64tapper
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkeymaps.py
More file actions
280 lines (277 loc) · 14.2 KB
/
Copy pathkeymaps.py
File metadata and controls
280 lines (277 loc) · 14.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
# !/usr/bin/env python
# -*- coding: utf-8 -*-
# Sixty four raw (hardware) Commodore 64 keys
rawKeys = {'DEL': '0000000', '3': '0000001', '5': '0000010', '7': '0000011', '9': '0000100', '+': '0000101',
'£': '0000110',
'1': '0000111', 'Return': '0001000', 'W': '0001001', 'R': '0001010', 'Y': '0001011', 'I': '0001100',
'P': '0001101', '*': '0001110', 'Arrow': '0001111', '⇄': '0010000', 'A': '0010001', 'D': '0010010',
'G': '0010011',
'J': '0010100', 'L': '0010101', ';': '0010110', 'CTRL': '0010111', 'F7': '0011000', '4': '0011001',
'6': '0011010',
'8': '0011011', '0': '0011100', '-': '0011101', 'Home': '0011110', '2': '0011111', 'F1': '0100000',
'Z': '0100001',
'C': '0100010', 'B': '0100011', 'M': '0100100', '.': '0100101', 'RightShift': '0100110', 'Space': '0100111',
'F3': '0101000', 'S': '0101001', 'F': '0101010', 'H': '0101011', 'K': '0101100', ':': '0101101',
'=': '0101110',
'Commodore': '0101111', 'F5': '0110000', 'E': '0110001', 'T': '0110010', 'U': '0110011', 'O': '0110100',
'@': '0110101', '↑': '0110110', 'Q': '0110111', '⇅': '0111000', 'LeftShift': '0111001', 'X': '0111010',
'V': '0111011', 'N': '0111100', ',': '0111101', '/': '0111110', 'RunStop': '0111111', 'Restore': '1000000'}
# Filling the following slowly for my Mac as needed :)
# User-supplied keymaps are necessary -- To Do
defaultMap = {0: "", # NUL (Null char)
1: "", # SOH (Start of Heading)
2: "", # STX (Start of Text)
3: "", # ETX (End of Text)
4: "", # EOT (End of Transmission)
5: "", # ENQ (Enquiry)
6: "", # ACK (Acknowledgment)
7: "", # BEL (Bell)
8: "", # BS (Back Space)
9: "", # HT (Horizontal Tab)
10: "", # LF (Line Feed)
11: "", # VT (Vertical Tab)
12: "", # FF (Form Feed)
13: "Return", # CR (Carriage Return)
14: "", # SO (Shift Out / X-On)
15: "", # SI (Shift In / X-Off)
16: "", # DLE (Data Line Escape)
17: "", # DC1 (Device Control 1 (oft. XON))
18: "", # DC2 (Device Control 2)
19: "", # DC3 (Device Control 3 (oft. XOFF))
20: "", # DC4 (Device Control 4)
21: "", # NAK (Negative Acknowledgement)
22: "", # SYN (Synchronous Idle)
23: "", # ETB (End of Transmit Block)
24: "", # CAN (Cancel)
25: "", # EM (End of Medium)
26: "", # SUB (Substitute)
27: "RunStop", # ESC (Escape)
28: "", # FS (File Separator)
29: "", # GS (Group Separator)
30: "", # RS (Record Separator)
31: "", # US (Unit Separator)
32: "Space", # (Space)
33: "LeftShift+1", # ! (Exclamation mark)
34: "LeftShift+2", # " (Double quotes (or speech marks))
35: "LeftShift+3", # # (Number)
36: "LeftShift+4", # $ (Dollar)
37: "LeftShift+5", # % (Procenttecken)
38: "LeftShift+6", # & (Ampersand)
39: "LeftShift+7", # ' (Single quote)
40: "LeftShift+8", # ( (Open parenthesis (or open bracket))
41: "LeftShift+9", # ) (Close parenthesis (or close bracket))
42: "", # * (Asterisk)
43: "", # + (Plus)
44: "", # , (Comma)
45: "", # - (Hyphen)
46: "", # . (Period, dot or full stop)
47: "", # / (Slash or divide)
48: "", # 0 (Zero)
49: "", # 1 (One)
50: "", # 2 (Two)
51: "", # 3 (Three)
52: "", # 4 (Four)
53: "", # 5 (Five)
54: "", # 6 (Six)
55: "", # 7 (Seven)
56: "", # 8 (Eight)
57: "", # 9 (Nine)
58: "", # : (Colon)
59: "", # ; (Semicolon)
60: "", # < (Less than (or open angled bracket))
61: "", # = (Equals)
62: "", # > (Greater than (or close angled bracket))
63: "", # ? (Question mark)
64: "", # @ (At symbol)
65: "", # A (Uppercase A)
66: "", # B (Uppercase B)
67: "", # C (Uppercase C)
68: "", # D (Uppercase D)
69: "", # E (Uppercase E)
70: "", # F (Uppercase F)
71: "", # G (Uppercase G)
72: "", # H (Uppercase H)
73: "", # I (Uppercase I)
74: "", # J (Uppercase J)
75: "", # K (Uppercase K)
76: "", # L (Uppercase L)
77: "", # M (Uppercase M)
78: "", # N (Uppercase N)
79: "", # O (Uppercase O)
80: "", # P (Uppercase P)
81: "", # Q (Uppercase Q)
82: "", # R (Uppercase R)
83: "", # S (Uppercase S)
84: "", # T (Uppercase T)
85: "", # U (Uppercase U)
86: "", # V (Uppercase V)
87: "", # W (Uppercase W)
88: "", # X (Uppercase X)
89: "", # Y (Uppercase Y)
90: "", # Z (Uppercase Z)
91: "", # [ (Opening bracket)
92: "Restore", # \ (Backslash)
93: "", # ] (Closing bracket)
94: "", # ^ (Caret - circumflex)
95: "", # _ (Underscore)
96: "", # ` (Grave accent)
97: "", # a (Lowercase a)
98: "", # b (Lowercase b)
99: "", # c (Lowercase c)
100: "", # d (Lowercase d)
101: "", # e (Lowercase e)
102: "", # f (Lowercase f)
103: "", # g (Lowercase g)
104: "", # h (Lowercase h)
105: "", # i (Lowercase i)
106: "", # j (Lowercase j)
107: "", # k (Lowercase k)
108: "", # l (Lowercase l)
109: "", # m (Lowercase m)
110: "", # n (Lowercase n)
111: "", # o (Lowercase o)
112: "", # p (Lowercase p)
113: "", # q (Lowercase q)
114: "", # r (Lowercase r)
115: "", # s (Lowercase s)
116: "", # t (Lowercase t)
117: "", # u (Lowercase u)
118: "", # v (Lowercase v)
119: "", # w (Lowercase w)
120: "", # x (Lowercase x)
121: "", # y (Lowercase y)
122: "", # z (Lowercase z)
123: "", # { (Opening brace)
124: "", # | (Vertical bar)
125: "", # } (Closing brace)
126: "", # ~ (Equivalency sign - tilde)
127: "DEL", # (Delete)
128: "", # € (Euro sign)
129: "", # ( )
130: "", # ‚ (Single low-9 quotation mark)
131: "", # ƒ (Latin small letter f with hook)
132: "", # „ (Double low-9 quotation mark)
133: "", # … (Horizontal ellipsis)
134: "", # † (Dagger)
135: "", # ‡ (Double dagger)
136: "", # ˆ (Modifier letter circumflex accent)
137: "", # ‰ (Per mille sign)
138: "", # Š (Latin capital letter S with caron)
139: "", # ‹ (Single left-pointing angle quotation)
140: "", # Œ (Latin capital ligature OE)
141: "", # ( )
142: "", # Ž (Latin captial letter Z with caron)
143: "", # ( )
144: "", # ( )
145: "", # ‘ (Left single quotation mark)
146: "", # ’ (Right single quotation mark)
147: "", # “ (Left double quotation mark)
148: "", # ” (Right double quotation mark)
149: "", # • (Bullet)
150: "", # – (En dash)
151: "", # — (Em dash)
152: "", # ˜ (Small tilde)
153: "", # ™ (Trade mark sign)
154: "", # š (Latin small letter S with caron)
155: "", # › (Single right-pointing angle quotation mark)
156: "", # œ (Latin small ligature oe)
157: "", # ( )
158: "", # ž (Latin small letter z with caron)
159: "", # Ÿ (Latin capital letter Y with diaeresis)
160: "", # (Non-breaking space)
161: "", # ¡ (Inverted exclamation mark)
162: "", # ¢ (Cent sign)
163: "", # £ (Pound sign)
164: "", # ¤ (Currency sign)
165: "", # ¥ (Yen sign)
166: "", # ¦ (Pipe, Broken vertical bar)
167: "", # § (Section sign)
168: "", # ¨ (Spacing diaeresis - umlaut)
169: "", # © (Copyright sign)
170: "", # ª (Feminine ordinal indicator)
171: "", # « (Left double angle quotes)
172: "", # ¬ (Not sign)
173: "", # (Soft hyphen)
174: "", # ® (Registered trade mark sign)
175: "", # ¯ (Spacing macron - overline)
176: "", # ° (Degree sign)
177: "", # ± (Plus-or-minus sign)
178: "", # ² (Superscript two - squared)
179: "", # ³ (Superscript three - cubed)
180: "", # ´ (Acute accent - spacing acute)
181: "", # µ (Micro sign)
182: "", # ¶ (Pilcrow sign - paragraph sign)
183: "", # · (Middle dot - Georgian comma)
184: "", # ¸ (Spacing cedilla)
185: "", # ¹ (Superscript one)
186: "", # º (Masculine ordinal indicator)
187: "", # » (Right double angle quotes)
188: "", # ¼ (Fraction one quarter)
189: "", # ½ (Fraction one half)
190: "", # ¾ (Fraction three quarters)
191: "", # ¿ (Inverted question mark)
192: "", # À (Latin capital letter A with grave)
193: "", # Á (Latin capital letter A with acute)
194: "", # Â (Latin capital letter A with circumflex)
195: "", # Ã (Latin capital letter A with tilde)
196: "", # Ä (Latin capital letter A with diaeresis)
197: "", # Å (Latin capital letter A with ring above)
198: "", # Æ (Latin capital letter AE)
199: "", # Ç (Latin capital letter C with cedilla)
200: "", # È (Latin capital letter E with grave)
201: "", # É (Latin capital letter E with acute)
202: "", # Ê (Latin capital letter E with circumflex)
203: "", # Ë (Latin capital letter E with diaeresis)
204: "", # Ì (Latin capital letter I with grave)
205: "", # Í (Latin capital letter I with acute)
206: "", # Î (Latin capital letter I with circumflex)
207: "", # Ï (Latin capital letter I with diaeresis)
208: "", # Ð (Latin capital letter ETH)
209: "", # Ñ (Latin capital letter N with tilde)
210: "", # Ò (Latin capital letter O with grave)
211: "", # Ó (Latin capital letter O with acute)
212: "", # Ô (Latin capital letter O with circumflex)
213: "", # Õ (Latin capital letter O with tilde)
214: "", # Ö (Latin capital letter O with diaeresis)
215: "", # × (Multiplication sign)
216: "", # Ø (Latin capital letter O with slash)
217: "", # Ù (Latin capital letter U with grave)
218: "", # Ú (Latin capital letter U with acute)
219: "", # Û (Latin capital letter U with circumflex)
220: "", # Ü (Latin capital letter U with diaeresis)
221: "", # Ý (Latin capital letter Y with acute)
222: "", # Þ (Latin capital letter THORN)
223: "", # ß (Latin small letter sharp s - ess-zed)
224: "", # à (Latin small letter a with grave)
225: "", # á (Latin small letter a with acute)
226: "", # â (Latin small letter a with circumflex)
227: "", # ã (Latin small letter a with tilde)
228: "", # ä (Latin small letter a with diaeresis)
229: "", # å (Latin small letter a with ring above)
230: "", # æ (Latin small letter ae)
231: "", # ç (Latin small letter c with cedilla)
232: "", # è (Latin small letter e with grave)
233: "", # é (Latin small letter e with acute)
234: "", # ê (Latin small letter e with circumflex)
235: "", # ë (Latin small letter e with diaeresis)
236: "", # ì (Latin small letter i with grave)
237: "", # í (Latin small letter i with acute)
238: "", # î (Latin small letter i with circumflex)
239: "", # ï (Latin small letter i with diaeresis)
240: "", # ð (Latin small letter eth)
241: "", # ñ (Latin small letter n with tilde)
242: "", # ò (Latin small letter o with grave)
243: "", # ó (Latin small letter o with acute)
244: "", # ô (Latin small letter o with circumflex)
245: "", # õ (Latin small letter o with tilde)
246: "", # ö (Latin small letter o with diaeresis)
247: "", # ÷ (Division sign)
248: "", # ø (Latin small letter o with slash)
249: "", # ù (Latin small letter u with grave)
250: "", # ú (Latin small letter u with acute)
251: "", # û (Latin small letter u with circumflex)
252: "", # ü (Latin small letter u with diaeresis)
253: "", # ý (Latin small letter y with acute)
254: "", # þ (Latin small letter thorn)
255: "", # ÿ (Latin small letter y with diaeresis)
}