|
1 /* |
|
2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Keymapping data implementation for |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 #include <PtiKeyMapData.h> |
|
30 |
|
31 #include <languages.hrh> |
|
32 |
|
33 #include "PtiKeymappings_ITUT_161.h" |
|
34 |
|
35 // |
|
36 // Multitap keymap data table |
|
37 // |
|
38 const TUint16 MultitapData_table_English[] = |
|
39 { |
|
40 0x2e,0x2c,0x3f,0x21,0x31,0x40,0x27,0x2d,0x5f,0x28,0x29,0x3a,0x3b,0x26,0x2f,0x25,0x2a,0x23,0x2b,0x3c,0x3d,0x3e,0x22,0x24,0xa3,0xa7,0xa5,0xa4,0xa1,0xbf, |
|
41 0x61,0x62,0x63,0x32,0xe4,0xe6,0xe5,0xe0,0xe1,0xe2,0xe3,0xe7, |
|
42 0x64,0x65,0x66,0x33,0xe8,0xe9,0xea,0xeb,0xf0, |
|
43 0x67,0x68,0x69,0x34,0xec,0xed,0xee,0xef, |
|
44 0x6a,0x6b,0x6c,0x35,0xa3, |
|
45 0x6d,0x6e,0x6f,0x36,0xf6,0xf8,0xf2,0xf3,0xf4,0xf5,0xf1, |
|
46 0x70,0x71,0x72,0x73,0x37,0xdf,0x24, |
|
47 0x74,0x75,0x76,0x38,0xf9,0xfa,0xfb,0xfc, |
|
48 0x77,0x78,0x79,0x7a,0x39,0xfd,0xfe, |
|
49 0x20,0x30,0x21b2, |
|
50 0x2e,0x2c,0x3f,0x21,0x31,0x40,0x27,0x2d,0x5f,0x28,0x29,0x3a,0x3b,0x26,0x2f,0x25,0x2a,0x23,0x2b,0x3c,0x3d,0x3e,0x22,0x24,0xa3,0xa7,0xa5,0xa4,0xa1,0xbf, |
|
51 0x41,0x42,0x43,0x32,0xc4,0xc6,0xc5,0xc0,0xc1,0xc2,0xc3,0xc7, |
|
52 0x44,0x45,0x46,0x33,0xc8,0xc9,0xca,0xcb,0xd0, |
|
53 0x47,0x48,0x49,0x34,0xcc,0xcd,0xce,0xcf, |
|
54 0x4a,0x4b,0x4c,0x35,0xa3, |
|
55 0x4d,0x4e,0x4f,0x36,0xd6,0xd8,0xd2,0xd3,0xd4,0xd5,0xd1, |
|
56 0x50,0x51,0x52,0x53,0x37,0x24, |
|
57 0x54,0x55,0x56,0x38,0xd9,0xda,0xdb,0xdc, |
|
58 0x57,0x58,0x59,0x5a,0x39,0xdd,0xde, |
|
59 0x20,0x30,0x21b2, |
|
60 }; |
|
61 |
|
62 const TInt KMultitapDataSize_English = 199; |
|
63 |
|
64 |
|
65 const TPtiKeyBinding MultitapKeyBindings_table_English[] = |
|
66 { |
|
67 {EPtiKey1, EPtiCaseLower, 0, 30}, |
|
68 {EPtiKey2, EPtiCaseLower, 30, 12}, |
|
69 {EPtiKey3, EPtiCaseLower, 42, 9}, |
|
70 {EPtiKey4, EPtiCaseLower, 51, 8}, |
|
71 {EPtiKey5, EPtiCaseLower, 59, 5}, |
|
72 {EPtiKey6, EPtiCaseLower, 64, 11}, |
|
73 {EPtiKey7, EPtiCaseLower, 75, 7}, |
|
74 {EPtiKey8, EPtiCaseLower, 82, 8}, |
|
75 {EPtiKey9, EPtiCaseLower, 90, 7}, |
|
76 {EPtiKeyStar, EPtiCaseLower, 97, 0}, |
|
77 {EPtiKey0, EPtiCaseLower, 97, 3}, |
|
78 {EPtiKeyHash, EPtiCaseLower, 100, 0}, |
|
79 {EPtiKey1, EPtiCaseUpper, 100, 30}, |
|
80 {EPtiKey2, EPtiCaseUpper, 130, 12}, |
|
81 {EPtiKey3, EPtiCaseUpper, 142, 9}, |
|
82 {EPtiKey4, EPtiCaseUpper, 151, 8}, |
|
83 {EPtiKey5, EPtiCaseUpper, 159, 5}, |
|
84 {EPtiKey6, EPtiCaseUpper, 164, 11}, |
|
85 {EPtiKey7, EPtiCaseUpper, 175, 6}, |
|
86 {EPtiKey8, EPtiCaseUpper, 181, 8}, |
|
87 {EPtiKey9, EPtiCaseUpper, 189, 7}, |
|
88 {EPtiKeyStar, EPtiCaseUpper, 196, 0}, |
|
89 {EPtiKey0, EPtiCaseUpper, 196, 3}, |
|
90 {EPtiKeyHash, EPtiCaseUpper, 199, 0}, |
|
91 }; |
|
92 |
|
93 const TInt KMaxMultitapIndex_English = 24; |
|
94 |
|
95 // |
|
96 // StandardQwerty keymap data table |
|
97 // |
|
98 const TUint16 StandardQwertyData_table_English[] = |
|
99 { |
|
100 0x0071, |
|
101 0x0077, |
|
102 0x0065, |
|
103 0x0072, |
|
104 0x0074, |
|
105 0x0079, |
|
106 0x0075, |
|
107 0x0069, |
|
108 0x006F, |
|
109 0x0070, |
|
110 0x0061, |
|
111 0x0073, |
|
112 0x0064, |
|
113 0x0066, |
|
114 0x0067, |
|
115 0x0068, |
|
116 0x006A, |
|
117 0x006B, |
|
118 0x006C, |
|
119 0x0027, |
|
120 0x007A, |
|
121 0x0078, |
|
122 0x0063, |
|
123 0x0076, |
|
124 0x0062, |
|
125 0x006E, |
|
126 0x006D, |
|
127 0x002C, |
|
128 0x002E, |
|
129 0x003F, |
|
130 0x0051, |
|
131 0x0057, |
|
132 0x0045, |
|
133 0x0052, |
|
134 0x0054, |
|
135 0x0059, |
|
136 0x0055, |
|
137 0x0049, |
|
138 0x004F, |
|
139 0x0050, |
|
140 0x0041, |
|
141 0x0053, |
|
142 0x0044, |
|
143 0x0046, |
|
144 0x0047, |
|
145 0x0048, |
|
146 0x004A, |
|
147 0x004B, |
|
148 0x004C, |
|
149 0x002F, |
|
150 0x005A, |
|
151 0x0058, |
|
152 0x0043, |
|
153 0x0056, |
|
154 0x0042, |
|
155 0x004E, |
|
156 0x004D, |
|
157 0x002B, |
|
158 0x002D, |
|
159 0x0021, |
|
160 }; |
|
161 |
|
162 const TInt KStandardQwertyDataSize_English = 60; |
|
163 |
|
164 |
|
165 const TPtiKeyBinding StandardQwertyKeyBindings_table_English[] = |
|
166 { |
|
167 {EPtiKeyQwertyAtCharacter, EPtiCaseLower, 0, 1}, |
|
168 {EPtiKeyQwerty1, EPtiCaseLower, 1, 1}, |
|
169 {EPtiKeyQwerty2, EPtiCaseLower, 2, 1}, |
|
170 {EPtiKeyQwerty3, EPtiCaseLower, 3, 1}, |
|
171 {EPtiKeyQwerty4, EPtiCaseLower, 4, 1}, |
|
172 {EPtiKeyQwerty5, EPtiCaseLower, 5, 1}, |
|
173 {EPtiKeyQwerty6, EPtiCaseLower, 6, 1}, |
|
174 {EPtiKeyQwerty7, EPtiCaseLower, 7, 1}, |
|
175 {EPtiKeyQwerty8, EPtiCaseLower, 8, 1}, |
|
176 {EPtiKeyQwerty9, EPtiCaseLower, 9, 1}, |
|
177 {EPtiKeyQwerty0, EPtiCaseLower, 10, 0}, |
|
178 {EPtiKeyQwertyPlus, EPtiCaseLower, 10, 1}, |
|
179 {EPtiKeyQwertyQ, EPtiCaseLower, 11, 1}, |
|
180 {EPtiKeyQwertyW, EPtiCaseLower, 12, 1}, |
|
181 {EPtiKeyQwertyE, EPtiCaseLower, 13, 1}, |
|
182 {EPtiKeyQwertyR, EPtiCaseLower, 14, 1}, |
|
183 {EPtiKeyQwertyT, EPtiCaseLower, 15, 1}, |
|
184 {EPtiKeyQwertyY, EPtiCaseLower, 16, 1}, |
|
185 {EPtiKeyQwertyU, EPtiCaseLower, 17, 1}, |
|
186 {EPtiKeyQwertyI, EPtiCaseLower, 18, 1}, |
|
187 {EPtiKeyQwertyO, EPtiCaseLower, 19, 1}, |
|
188 {EPtiKeyQwertyP, EPtiCaseLower, 20, 0}, |
|
189 {EPtiKeyQwertyMinus, EPtiCaseLower, 20, 0}, |
|
190 {EPtiKeyQwertyHash, EPtiCaseLower, 20, 1}, |
|
191 {EPtiKeyQwertyA, EPtiCaseLower, 21, 1}, |
|
192 {EPtiKeyQwertyS, EPtiCaseLower, 22, 1}, |
|
193 {EPtiKeyQwertyD, EPtiCaseLower, 23, 1}, |
|
194 {EPtiKeyQwertyF, EPtiCaseLower, 24, 1}, |
|
195 {EPtiKeyQwertyG, EPtiCaseLower, 25, 1}, |
|
196 {EPtiKeyQwertyH, EPtiCaseLower, 26, 1}, |
|
197 {EPtiKeyQwertyJ, EPtiCaseLower, 27, 1}, |
|
198 {EPtiKeyQwertyK, EPtiCaseLower, 28, 1}, |
|
199 {EPtiKeyQwertyL, EPtiCaseLower, 29, 1}, |
|
200 {EPtiKeyQwertySemicolon, EPtiCaseLower, 30, 0}, |
|
201 {EPtiKeyQwertyApostrophe, EPtiCaseLower, 30, 0}, |
|
202 {0x5b, EPtiCaseLower, 30, 0}, |
|
203 {EPtiKeyQwertyZ, EPtiCaseLower, 30, 0}, |
|
204 {EPtiKeyQwertyX, EPtiCaseLower, 30, 0}, |
|
205 {EPtiKeyQwertyC, EPtiCaseLower, 30, 0}, |
|
206 {EPtiKeyQwertyV, EPtiCaseLower, 30, 0}, |
|
207 {EPtiKeyQwertyB, EPtiCaseLower, 30, 0}, |
|
208 {EPtiKeyQwertyN, EPtiCaseLower, 30, 0}, |
|
209 {EPtiKeyQwertyM, EPtiCaseLower, 30, 0}, |
|
210 {EPtiKeyQwertyComma, EPtiCaseLower, 30, 0}, |
|
211 {EPtiKeyQwertyFullstop, EPtiCaseLower, 30, 0}, |
|
212 {EPtiKeyQwertySlash, EPtiCaseLower, 30, 0}, |
|
213 {EPtiKeyQwertyAtCharacter, EPtiCaseUpper, 30, 1}, |
|
214 {EPtiKeyQwerty1, EPtiCaseUpper, 31, 1}, |
|
215 {EPtiKeyQwerty2, EPtiCaseUpper, 32, 1}, |
|
216 {EPtiKeyQwerty3, EPtiCaseUpper, 33, 1}, |
|
217 {EPtiKeyQwerty4, EPtiCaseUpper, 34, 1}, |
|
218 {EPtiKeyQwerty5, EPtiCaseUpper, 35, 1}, |
|
219 {EPtiKeyQwerty6, EPtiCaseUpper, 36, 1}, |
|
220 {EPtiKeyQwerty7, EPtiCaseUpper, 37, 1}, |
|
221 {EPtiKeyQwerty8, EPtiCaseUpper, 38, 1}, |
|
222 {EPtiKeyQwerty9, EPtiCaseUpper, 39, 1}, |
|
223 {EPtiKeyQwerty0, EPtiCaseUpper, 40, 0}, |
|
224 {EPtiKeyQwertyPlus, EPtiCaseUpper, 40, 1}, |
|
225 {EPtiKeyQwertyQ, EPtiCaseUpper, 41, 1}, |
|
226 {EPtiKeyQwertyW, EPtiCaseUpper, 42, 1}, |
|
227 {EPtiKeyQwertyE, EPtiCaseUpper, 43, 1}, |
|
228 {EPtiKeyQwertyR, EPtiCaseUpper, 44, 1}, |
|
229 {EPtiKeyQwertyT, EPtiCaseUpper, 45, 1}, |
|
230 {EPtiKeyQwertyY, EPtiCaseUpper, 46, 1}, |
|
231 {EPtiKeyQwertyU, EPtiCaseUpper, 47, 1}, |
|
232 {EPtiKeyQwertyI, EPtiCaseUpper, 48, 1}, |
|
233 {EPtiKeyQwertyO, EPtiCaseUpper, 49, 1}, |
|
234 {EPtiKeyQwertyP, EPtiCaseUpper, 50, 0}, |
|
235 {EPtiKeyQwertyMinus, EPtiCaseUpper, 50, 0}, |
|
236 {EPtiKeyQwertyHash, EPtiCaseUpper, 50, 1}, |
|
237 {EPtiKeyQwertyA, EPtiCaseUpper, 51, 1}, |
|
238 {EPtiKeyQwertyS, EPtiCaseUpper, 52, 1}, |
|
239 {EPtiKeyQwertyD, EPtiCaseUpper, 53, 1}, |
|
240 {EPtiKeyQwertyF, EPtiCaseUpper, 54, 1}, |
|
241 {EPtiKeyQwertyG, EPtiCaseUpper, 55, 1}, |
|
242 {EPtiKeyQwertyH, EPtiCaseUpper, 56, 1}, |
|
243 {EPtiKeyQwertyJ, EPtiCaseUpper, 57, 1}, |
|
244 {EPtiKeyQwertyK, EPtiCaseUpper, 58, 1}, |
|
245 {EPtiKeyQwertyL, EPtiCaseUpper, 59, 1}, |
|
246 {EPtiKeyQwertySemicolon, EPtiCaseUpper, 60, 0}, |
|
247 {EPtiKeyQwertyApostrophe, EPtiCaseUpper, 60, 0}, |
|
248 {0x5b, EPtiCaseUpper, 60, 0}, |
|
249 {EPtiKeyQwertyZ, EPtiCaseUpper, 60, 0}, |
|
250 {EPtiKeyQwertyX, EPtiCaseUpper, 60, 0}, |
|
251 {EPtiKeyQwertyC, EPtiCaseUpper, 60, 0}, |
|
252 {EPtiKeyQwertyV, EPtiCaseUpper, 60, 0}, |
|
253 {EPtiKeyQwertyB, EPtiCaseUpper, 60, 0}, |
|
254 {EPtiKeyQwertyN, EPtiCaseUpper, 60, 0}, |
|
255 {EPtiKeyQwertyM, EPtiCaseUpper, 60, 0}, |
|
256 {EPtiKeyQwertyComma, EPtiCaseUpper, 60, 0}, |
|
257 {EPtiKeyQwertyFullstop, EPtiCaseUpper, 60, 0}, |
|
258 {EPtiKeyQwertySlash, EPtiCaseUpper, 60, 0}, |
|
259 }; |
|
260 |
|
261 const TInt KMaxStandardQwertyIndex_English = 92; |
|
262 |
|
263 // |
|
264 // MiniQwerty keymap data table |
|
265 // |
|
266 const TUint16 MiniQwertyData_table_English[] = |
|
267 { |
|
268 0x0071, |
|
269 0x0077, |
|
270 0x0065,0x00E8,0x00E9,0x00EA,0x00EB, |
|
271 0x0072, |
|
272 0x0074,0x00FE, |
|
273 0x0079,0x00FD, |
|
274 0x0075,0x00F9,0x00FA,0x00FB,0x00FC, |
|
275 0x0069,0x00EC,0x00ED,0x00EE,0x00EF, |
|
276 0x006F,0x00F4,0x00F6,0x00F2,0x00F3,0x00F8, |
|
277 0x0070, |
|
278 0x0061,0x00E2,0x00E4,0x00E0,0x00E1,0x00E3,0x00E6, |
|
279 0x0073,0x00DF, |
|
280 0x0064,0x00F0, |
|
281 0x0066, |
|
282 0x0067,0x011F, |
|
283 0x0068, |
|
284 0x006A, |
|
285 0x006B, |
|
286 0x006C, |
|
287 0x007A, |
|
288 0x0078, |
|
289 0x0063,0x00E7, |
|
290 0x0076, |
|
291 0x0062, |
|
292 0x006E,0x00F1, |
|
293 0x006D, |
|
294 0x0040, |
|
295 0x0051, |
|
296 0x0057, |
|
297 0x0045,0x00C8,0x00C9,0x00CA,0x00CB, |
|
298 0x0052, |
|
299 0x0054,0x00DE, |
|
300 0x0059,0x00DD, |
|
301 0x0055,0x00D9,0x00DA,0x00DB,0x00DC, |
|
302 0x0049,0x00CC,0x00CD,0x00CE,0x00CF, |
|
303 0x004F,0x00D4,0x00D6,0x00D2,0x00D3,0x00D8, |
|
304 0x0050, |
|
305 0x0041,0x00C2,0x00C4,0x00C0,0x00C1,0x00C3,0x00C6, |
|
306 0x0053, |
|
307 0x0044,0x00D0, |
|
308 0x0046, |
|
309 0x0047,0x011E, |
|
310 0x0048, |
|
311 0x004A, |
|
312 0x004B, |
|
313 0x004C, |
|
314 0x005A, |
|
315 0x0058, |
|
316 0x0043,0x00C7, |
|
317 0x0056, |
|
318 0x0042, |
|
319 0x004E,0x00D1, |
|
320 0x004D, |
|
321 0x0E20, |
|
322 0x0E38, |
|
323 0x0031, |
|
324 0x0032, |
|
325 0x0033, |
|
326 0x0E04, |
|
327 0x0E02, |
|
328 0x0E1A, |
|
329 0x0034, |
|
330 0x0035, |
|
331 0x0036, |
|
332 0x0E08, |
|
333 0x0E26, |
|
334 0x0E0A, |
|
335 0x0037, |
|
336 0x0038, |
|
337 0x0039, |
|
338 0x0E1D, |
|
339 0x002A, |
|
340 0x0030, |
|
341 0x0023, |
|
342 }; |
|
343 |
|
344 const TInt KMiniQwertyDataSize_English = 133; |
|
345 |
|
346 |
|
347 const TPtiKeyBinding MiniQwertyKeyBindings_table_English[] = |
|
348 { |
|
349 {EPtiKeyQwerty1, EPtiCaseLower, 0, 1}, |
|
350 {EPtiKeyQwerty2, EPtiCaseLower, 1, 1}, |
|
351 {EPtiKeyQwerty3, EPtiCaseLower, 2, 5}, |
|
352 {EPtiKeyQwerty4, EPtiCaseLower, 7, 1}, |
|
353 {EPtiKeyQwerty5, EPtiCaseLower, 8, 2}, |
|
354 {EPtiKeyQwerty6, EPtiCaseLower, 10, 2}, |
|
355 {EPtiKeyQwerty7, EPtiCaseLower, 12, 5}, |
|
356 {EPtiKeyQwerty8, EPtiCaseLower, 17, 5}, |
|
357 {EPtiKeyQwerty9, EPtiCaseLower, 22, 6}, |
|
358 {EPtiKeyQwerty0, EPtiCaseLower, 28, 1}, |
|
359 {EPtiKeyQwertyA, EPtiCaseLower, 29, 7}, |
|
360 {EPtiKeyQwertyS, EPtiCaseLower, 36, 2}, |
|
361 {EPtiKeyQwertyD, EPtiCaseLower, 38, 2}, |
|
362 {EPtiKeyQwertyF, EPtiCaseLower, 40, 1}, |
|
363 {EPtiKeyQwertyG, EPtiCaseLower, 41, 2}, |
|
364 {EPtiKeyQwertyH, EPtiCaseLower, 43, 1}, |
|
365 {EPtiKeyQwertyJ, EPtiCaseLower, 44, 1}, |
|
366 {EPtiKeyQwertyK, EPtiCaseLower, 45, 1}, |
|
367 {EPtiKeyQwertyL, EPtiCaseLower, 46, 1}, |
|
368 {EPtiKeyQwertyZ, EPtiCaseLower, 47, 1}, |
|
369 {EPtiKeyQwertyX, EPtiCaseLower, 48, 1}, |
|
370 {EPtiKeyQwertyC, EPtiCaseLower, 49, 2}, |
|
371 {EPtiKeyQwertyV, EPtiCaseLower, 51, 1}, |
|
372 {EPtiKeyQwertyB, EPtiCaseLower, 52, 1}, |
|
373 {EPtiKeyQwertyN, EPtiCaseLower, 53, 2}, |
|
374 {EPtiKeyQwertyM, EPtiCaseLower, 55, 1}, |
|
375 {EPtiKeyQwertyComma, EPtiCaseLower, 56, 0}, |
|
376 {EPtiKeyQwertyFullstop, EPtiCaseLower, 56, 0}, |
|
377 {EPtiKeyQwerty1, EPtiCaseUpper, 57, 1}, |
|
378 {EPtiKeyQwerty2, EPtiCaseUpper, 58, 1}, |
|
379 {EPtiKeyQwerty3, EPtiCaseUpper, 59, 5}, |
|
380 {EPtiKeyQwerty4, EPtiCaseUpper, 64, 1}, |
|
381 {EPtiKeyQwerty5, EPtiCaseUpper, 65, 2}, |
|
382 {EPtiKeyQwerty6, EPtiCaseUpper, 67, 2}, |
|
383 {EPtiKeyQwerty7, EPtiCaseUpper, 69, 5}, |
|
384 {EPtiKeyQwerty8, EPtiCaseUpper, 74, 5}, |
|
385 {EPtiKeyQwerty9, EPtiCaseUpper, 79, 6}, |
|
386 {EPtiKeyQwerty0, EPtiCaseUpper, 85, 1}, |
|
387 {EPtiKeyQwertyA, EPtiCaseUpper, 86, 7}, |
|
388 {EPtiKeyQwertyS, EPtiCaseUpper, 93, 1}, |
|
389 {EPtiKeyQwertyD, EPtiCaseUpper, 94, 2}, |
|
390 {EPtiKeyQwertyF, EPtiCaseUpper, 96, 1}, |
|
391 {EPtiKeyQwertyG, EPtiCaseUpper, 97, 2}, |
|
392 {EPtiKeyQwertyH, EPtiCaseUpper, 99, 1}, |
|
393 {EPtiKeyQwertyJ, EPtiCaseUpper, 100, 1}, |
|
394 {EPtiKeyQwertyK, EPtiCaseUpper, 101, 1}, |
|
395 {EPtiKeyQwertyL, EPtiCaseUpper, 102, 1}, |
|
396 {EPtiKeyQwertyZ, EPtiCaseUpper, 103, 1}, |
|
397 {EPtiKeyQwertyX, EPtiCaseUpper, 104, 1}, |
|
398 {EPtiKeyQwertyC, EPtiCaseUpper, 105, 2}, |
|
399 {EPtiKeyQwertyV, EPtiCaseUpper, 107, 1}, |
|
400 {EPtiKeyQwertyB, EPtiCaseUpper, 108, 1}, |
|
401 {EPtiKeyQwertyN, EPtiCaseUpper, 109, 2}, |
|
402 {EPtiKeyQwertyM, EPtiCaseUpper, 111, 1}, |
|
403 {EPtiKeyQwertyComma, EPtiCaseUpper, 112, 0}, |
|
404 {EPtiKeyQwertyFullstop, EPtiCaseUpper, 112, 0}, |
|
405 {EPtiKeyQwerty1, EPtiCaseFnUpper, 112, 1}, |
|
406 {EPtiKeyQwerty2, EPtiCaseFnUpper, 113, 1}, |
|
407 {EPtiKeyQwerty3, EPtiCaseFnUpper, 114, 1}, |
|
408 {EPtiKeyQwerty5, EPtiCaseFnUpper, 115, 1}, |
|
409 {EPtiKeyQwerty7, EPtiCaseFnUpper, 116, 1}, |
|
410 {EPtiKeyQwerty9, EPtiCaseFnUpper, 117, 1}, |
|
411 {EPtiKeyQwertyA, EPtiCaseFnUpper, 118, 1}, |
|
412 {EPtiKeyQwertyS, EPtiCaseFnUpper, 119, 1}, |
|
413 {EPtiKeyQwertyD, EPtiCaseFnUpper, 120, 1}, |
|
414 {EPtiKeyQwertyG, EPtiCaseFnUpper, 121, 1}, |
|
415 {EPtiKeyQwertyJ, EPtiCaseFnUpper, 122, 1}, |
|
416 {EPtiKeyQwertyL, EPtiCaseFnUpper, 123, 1}, |
|
417 {EPtiKeyQwertyZ, EPtiCaseFnUpper, 124, 1}, |
|
418 {EPtiKeyQwertyX, EPtiCaseFnUpper, 125, 1}, |
|
419 {EPtiKeyQwertyC, EPtiCaseFnUpper, 126, 1}, |
|
420 {EPtiKeyQwertyB, EPtiCaseFnUpper, 127, 1}, |
|
421 {EPtiKeyQwertyM, EPtiCaseFnUpper, 128, 1}, |
|
422 {EPtiKeyQwertyFullstop, EPtiCaseFnUpper, 129, 1}, |
|
423 }; |
|
424 |
|
425 const TInt KMaxMiniQwertyIndex_English = 74; |
|
426 |
|
427 // |
|
428 // Class implementation. |
|
429 // |
|
430 |
|
431 CPtiLangDataImplEnglish* CPtiLangDataImplEnglish::NewL() |
|
432 { |
|
433 return new (ELeave) CPtiLangDataImplEnglish(); |
|
434 } |
|
435 |
|
436 |
|
437 TInt CPtiLangDataImplEnglish::LanguageCode() const |
|
438 { |
|
439 return ELangEnglish; |
|
440 } |
|
441 |
|
442 |
|
443 const TUint16* CPtiLangDataImplEnglish::KeyData(TPtiKeyboardType aKeyboardType, TInt& aDataSize) const |
|
444 { |
|
445 if (aKeyboardType == EPtiKeyboard12Key) |
|
446 { |
|
447 aDataSize = KMultitapDataSize_English; |
|
448 return MultitapData_table_English; |
|
449 } |
|
450 if (aKeyboardType == EPtiKeyboardQwerty4x12) |
|
451 { |
|
452 aDataSize = KStandardQwertyDataSize_English; |
|
453 return StandardQwertyData_table_English; |
|
454 } |
|
455 |
|
456 if (aKeyboardType == EPtiKeyboardQwerty4x10) |
|
457 { |
|
458 aDataSize = KMiniQwertyDataSize_English; |
|
459 return MiniQwertyData_table_English; |
|
460 } |
|
461 |
|
462 aDataSize = 0; |
|
463 return NULL; |
|
464 } |
|
465 |
|
466 |
|
467 const TPtiKeyBinding* CPtiLangDataImplEnglish::KeyBindingTable(TPtiKeyboardType aKeyboardType, TInt& aNumItems) const |
|
468 { |
|
469 if (aKeyboardType == EPtiKeyboard12Key) |
|
470 { |
|
471 aNumItems = KMaxMultitapIndex_English; |
|
472 return MultitapKeyBindings_table_English; |
|
473 } |
|
474 if (aKeyboardType == EPtiKeyboardQwerty4x12) |
|
475 { |
|
476 aNumItems = KMaxStandardQwertyIndex_English; |
|
477 return StandardQwertyKeyBindings_table_English; |
|
478 } |
|
479 if (aKeyboardType == EPtiKeyboardQwerty4x10) |
|
480 { |
|
481 aNumItems = KMaxMiniQwertyIndex_English; |
|
482 return MiniQwertyKeyBindings_table_English; |
|
483 } |
|
484 |
|
485 aNumItems = 0; |
|
486 return NULL; |
|
487 } |
|
488 |
|
489 |