22 std::map<uint64_t, uint64_t> KeyboardKeyEmbedderHandler::windowsToPhysicalMap_ =
24 {0x00000001, 0x00070029},
25 {0x00000002, 0x0007001e},
26 {0x00000003, 0x0007001f},
27 {0x00000004, 0x00070020},
28 {0x00000005, 0x00070021},
29 {0x00000006, 0x00070022},
30 {0x00000007, 0x00070023},
31 {0x00000008, 0x00070024},
32 {0x00000009, 0x00070025},
33 {0x0000000a, 0x00070026},
34 {0x0000000b, 0x00070027},
35 {0x0000000c, 0x0007002d},
36 {0x0000000d, 0x0007002e},
37 {0x0000000e, 0x0007002a},
38 {0x0000000f, 0x0007002b},
39 {0x00000010, 0x00070014},
40 {0x00000011, 0x0007001a},
41 {0x00000012, 0x00070008},
42 {0x00000013, 0x00070015},
43 {0x00000014, 0x00070017},
44 {0x00000015, 0x0007001c},
45 {0x00000016, 0x00070018},
46 {0x00000017, 0x0007000c},
47 {0x00000018, 0x00070012},
48 {0x00000019, 0x00070013},
49 {0x0000001a, 0x0007002f},
50 {0x0000001b, 0x00070030},
51 {0x0000001c, 0x00070028},
52 {0x0000001d, 0x000700e0},
53 {0x0000001e, 0x00070004},
54 {0x0000001f, 0x00070016},
55 {0x00000020, 0x00070007},
56 {0x00000021, 0x00070009},
57 {0x00000022, 0x0007000a},
58 {0x00000023, 0x0007000b},
59 {0x00000024, 0x0007000d},
60 {0x00000025, 0x0007000e},
61 {0x00000026, 0x0007000f},
62 {0x00000027, 0x00070033},
63 {0x00000028, 0x00070034},
64 {0x00000029, 0x00070035},
65 {0x0000002a, 0x000700e1},
66 {0x0000002b, 0x00070031},
67 {0x0000002c, 0x0007001d},
68 {0x0000002d, 0x0007001b},
69 {0x0000002e, 0x00070006},
70 {0x0000002f, 0x00070019},
71 {0x00000030, 0x00070005},
72 {0x00000031, 0x00070011},
73 {0x00000032, 0x00070010},
74 {0x00000033, 0x00070036},
75 {0x00000034, 0x00070037},
76 {0x00000035, 0x00070038},
77 {0x00000036, 0x000700e5},
78 {0x00000037, 0x00070055},
79 {0x00000038, 0x000700e2},
80 {0x00000039, 0x0007002c},
81 {0x0000003a, 0x00070039},
82 {0x0000003b, 0x0007003a},
83 {0x0000003c, 0x0007003b},
84 {0x0000003d, 0x0007003c},
85 {0x0000003e, 0x0007003d},
86 {0x0000003f, 0x0007003e},
87 {0x00000040, 0x0007003f},
88 {0x00000041, 0x00070040},
89 {0x00000042, 0x00070041},
90 {0x00000043, 0x00070042},
91 {0x00000044, 0x00070043},
92 {0x00000045, 0x00070048},
93 {0x00000046, 0x00070047},
94 {0x00000047, 0x0007005f},
95 {0x00000048, 0x00070060},
96 {0x00000049, 0x00070061},
97 {0x0000004a, 0x00070056},
98 {0x0000004b, 0x0007005c},
99 {0x0000004c, 0x0007005d},
100 {0x0000004d, 0x0007005e},
101 {0x0000004e, 0x00070057},
102 {0x0000004f, 0x00070059},
103 {0x00000050, 0x0007005a},
104 {0x00000051, 0x0007005b},
105 {0x00000052, 0x00070062},
106 {0x00000053, 0x00070063},
107 {0x00000056, 0x00070064},
108 {0x00000057, 0x00070044},
109 {0x00000058, 0x00070045},
110 {0x00000059, 0x00070067},
111 {0x00000064, 0x00070068},
112 {0x00000065, 0x00070069},
113 {0x00000066, 0x0007006a},
114 {0x00000067, 0x0007006b},
115 {0x00000068, 0x0007006c},
116 {0x00000069, 0x0007006d},
117 {0x0000006a, 0x0007006e},
118 {0x0000006b, 0x0007006f},
119 {0x0000006c, 0x00070070},
120 {0x0000006d, 0x00070071},
121 {0x0000006e, 0x00070072},
122 {0x00000070, 0x00070088},
123 {0x00000071, 0x00070091},
124 {0x00000072, 0x00070090},
125 {0x00000073, 0x00070087},
126 {0x00000076, 0x00070073},
127 {0x00000077, 0x00070093},
128 {0x00000078, 0x00070092},
129 {0x00000079, 0x0007008a},
130 {0x0000007b, 0x0007008b},
131 {0x0000007d, 0x00070089},
132 {0x0000007e, 0x00070085},
133 {0x000000fc, 0x00070002},
134 {0x000000ff, 0x00070001},
135 {0x0000e008, 0x0007007a},
136 {0x0000e00a, 0x0007007d},
137 {0x0000e010, 0x000c00b6},
138 {0x0000e017, 0x0007007b},
139 {0x0000e018, 0x0007007c},
140 {0x0000e019, 0x000c00b5},
141 {0x0000e01c, 0x00070058},
142 {0x0000e01d, 0x000700e4},
143 {0x0000e020, 0x0007007f},
144 {0x0000e021, 0x000c0192},
145 {0x0000e022, 0x000c00cd},
146 {0x0000e024, 0x000c00b7},
147 {0x0000e02c, 0x000c00b8},
148 {0x0000e02e, 0x00070081},
149 {0x0000e030, 0x00070080},
150 {0x0000e032, 0x000c0223},
151 {0x0000e035, 0x00070054},
152 {0x0000e037, 0x00070046},
153 {0x0000e038, 0x000700e6},
154 {0x0000e03b, 0x00070075},
155 {0x0000e045, 0x00070053},
156 {0x0000e047, 0x0007004a},
157 {0x0000e048, 0x00070052},
158 {0x0000e049, 0x0007004b},
159 {0x0000e04b, 0x00070050},
160 {0x0000e04d, 0x0007004f},
161 {0x0000e04f, 0x0007004d},
162 {0x0000e050, 0x00070051},
163 {0x0000e051, 0x0007004e},
164 {0x0000e052, 0x00070049},
165 {0x0000e053, 0x0007004c},
166 {0x0000e05b, 0x000700e3},
167 {0x0000e05c, 0x000700e7},
168 {0x0000e05d, 0x00070065},
169 {0x0000e05e, 0x00070066},
170 {0x0000e05f, 0x00010082},
171 {0x0000e063, 0x00010083},
172 {0x0000e065, 0x000c0221},
173 {0x0000e066, 0x000c022a},
174 {0x0000e067, 0x000c0227},
175 {0x0000e068, 0x000c0226},
176 {0x0000e069, 0x000c0225},
177 {0x0000e06a, 0x000c0224},
178 {0x0000e06b, 0x000c0194},
179 {0x0000e06c, 0x000c018a},
180 {0x0000e06d, 0x000c0183},
183 std::map<uint64_t, uint64_t> KeyboardKeyEmbedderHandler::windowsToLogicalMap_ =
185 {0x00000003, 0x00100000504},
186 {0x00000008, 0x00100000008},
187 {0x00000009, 0x00100000009},
188 {0x0000000c, 0x00100000401},
189 {0x0000000d, 0x0010000000d},
190 {0x00000010, 0x00200000102},
191 {0x00000011, 0x00200000100},
192 {0x00000013, 0x00100000509},
193 {0x00000014, 0x00100000104},
194 {0x00000015, 0x00200000010},
195 {0x00000017, 0x00100000713},
196 {0x00000018, 0x00100000706},
197 {0x00000019, 0x00100000719},
198 {0x0000001b, 0x0010000001b},
199 {0x0000001c, 0x00100000705},
200 {0x0000001e, 0x00100000501},
201 {0x0000001f, 0x0010000070b},
202 {0x00000020, 0x00000000020},
203 {0x00000021, 0x00100000308},
204 {0x00000022, 0x00100000307},
205 {0x00000023, 0x00100000305},
206 {0x00000024, 0x00100000306},
207 {0x00000025, 0x00100000302},
208 {0x00000026, 0x00100000304},
209 {0x00000027, 0x00100000303},
210 {0x00000028, 0x00100000301},
211 {0x00000029, 0x0010000050c},
212 {0x0000002a, 0x00100000a0c},
213 {0x0000002b, 0x00100000506},
214 {0x0000002c, 0x00100000608},
215 {0x0000002d, 0x00100000407},
216 {0x0000002e, 0x0010000007f},
217 {0x0000002f, 0x00100000508},
218 {0x0000005b, 0x00200000106},
219 {0x0000005c, 0x00200000107},
220 {0x0000005d, 0x00100000505},
221 {0x0000005f, 0x00200000002},
222 {0x00000060, 0x00200000230},
223 {0x00000061, 0x00200000231},
224 {0x00000062, 0x00200000232},
225 {0x00000063, 0x00200000233},
226 {0x00000064, 0x00200000234},
227 {0x00000065, 0x00200000235},
228 {0x00000066, 0x00200000236},
229 {0x00000067, 0x00200000237},
230 {0x00000068, 0x00200000238},
231 {0x00000069, 0x00200000239},
232 {0x0000006a, 0x0020000022a},
233 {0x0000006b, 0x0020000022b},
234 {0x0000006c, 0x0020000022c},
235 {0x0000006d, 0x0020000022d},
236 {0x0000006e, 0x0020000022e},
237 {0x0000006f, 0x0020000022f},
238 {0x00000070, 0x00100000801},
239 {0x00000071, 0x00100000802},
240 {0x00000072, 0x00100000803},
241 {0x00000073, 0x00100000804},
242 {0x00000074, 0x00100000805},
243 {0x00000075, 0x00100000806},
244 {0x00000076, 0x00100000807},
245 {0x00000077, 0x00100000808},
246 {0x00000078, 0x00100000809},
247 {0x00000079, 0x0010000080a},
248 {0x0000007a, 0x0010000080b},
249 {0x0000007b, 0x0010000080c},
250 {0x0000007c, 0x0010000080d},
251 {0x0000007d, 0x0010000080e},
252 {0x0000007e, 0x0010000080f},
253 {0x0000007f, 0x00100000810},
254 {0x00000080, 0x00100000811},
255 {0x00000081, 0x00100000812},
256 {0x00000082, 0x00100000813},
257 {0x00000083, 0x00100000814},
258 {0x00000084, 0x00100000815},
259 {0x00000085, 0x00100000816},
260 {0x00000086, 0x00100000817},
261 {0x00000087, 0x00100000818},
262 {0x00000090, 0x0010000010a},
263 {0x00000091, 0x0010000010c},
264 {0x00000092, 0x0020000023d},
265 {0x000000a0, 0x00200000102},
266 {0x000000a1, 0x00200000103},
267 {0x000000a2, 0x00200000100},
268 {0x000000a3, 0x00200000101},
269 {0x000000a4, 0x00200000104},
270 {0x000000a5, 0x00200000105},
271 {0x000000a6, 0x00100000c01},
272 {0x000000a7, 0x00100000c03},
273 {0x000000a8, 0x00100000c05},
274 {0x000000a9, 0x00100000c07},
275 {0x000000aa, 0x00100000c06},
276 {0x000000ab, 0x00100000c02},
277 {0x000000ac, 0x00100000c04},
278 {0x000000ad, 0x00100000a11},
279 {0x000000ae, 0x00100000a0f},
280 {0x000000af, 0x00100000a10},
281 {0x000000b2, 0x00100000a07},
282 {0x000000b3, 0x00100000a05},
283 {0x000000b4, 0x00100000b03},
284 {0x000000ba, 0x0000000003b},
285 {0x000000bb, 0x0000000003d},
286 {0x000000bc, 0x0000000002c},
287 {0x000000bd, 0x0000000002d},
288 {0x000000be, 0x0000000002e},
289 {0x000000bf, 0x0000000002f},
290 {0x000000c0, 0x00000000060},
291 {0x000000c3, 0x00200000308},
292 {0x000000c4, 0x00200000309},
293 {0x000000c5, 0x0020000030a},
294 {0x000000c6, 0x0020000030b},
295 {0x000000c7, 0x0020000030c},
296 {0x000000c8, 0x0020000030d},
297 {0x000000c9, 0x0020000030e},
298 {0x000000ca, 0x0020000030f},
299 {0x000000cb, 0x00200000310},
300 {0x000000db, 0x0000000005b},
301 {0x000000dc, 0x0000000005c},
302 {0x000000dd, 0x0000000005d},
303 {0x000000de, 0x00000000022},
304 {0x000000f6, 0x00100000503},
305 {0x000000fa, 0x0010000050a},
308 std::map<uint64_t, uint64_t> KeyboardKeyEmbedderHandler::scanCodeToLogicalMap_ =
310 {0x00000037, 0x0020000022a},
311 {0x00000047, 0x00200000237},
312 {0x00000048, 0x00200000238},
313 {0x00000049, 0x00200000239},
314 {0x0000004a, 0x0020000022d},
315 {0x0000004b, 0x00200000234},
316 {0x0000004c, 0x00200000235},
317 {0x0000004d, 0x00200000236},
318 {0x0000004e, 0x0020000022b},
319 {0x0000004f, 0x00200000231},
320 {0x00000050, 0x00200000232},
321 {0x00000051, 0x00200000233},
322 {0x00000052, 0x00200000230},
323 {0x00000053, 0x0020000022e},
324 {0x00000059, 0x0020000023d},
325 {0x0000e01d, 0x00200000101},
326 {0x0000e035, 0x0020000022f},
327 {0x0000e038, 0x00200000105},
330 const uint64_t KeyboardKeyEmbedderHandler::valueMask = 0x000ffffffff;
331 const uint64_t KeyboardKeyEmbedderHandler::unicodePlane = 0x00000000000;
332 const uint64_t KeyboardKeyEmbedderHandler::windowsPlane = 0x01600000000;