wgui_inputs.c
资源名称:mmi.rar [点击查看]
上传用户:lqx1163
上传日期:2014-08-13
资源大小:9183k
文件大小:914k
源码类别:
MTK
开发平台:
C/C++
- {0x0637, 0x0638, 0x0639, 0x063A, 0x0034, ' '},
- {0x0633, 0x0634, 0x0635, 0x0636, 0x0035, ' '},
- {0x062F, 0x0630, 0x0631, 0x0632, 0x0698, 0x0036, ' '},
- {0x0648, 0x0624, 0x0649, 0x064A, 0x0626, 0x0621, 0x06CC, 0x0037, ' '},
- {0x0645, 0x0646, 0x0647, 0x0629, 0x0038, ' '},
- {0x0641, 0x0642, 0x0643, 0x0644, 0x06A9, 0x06AF, 0x0039, ' '},
- #if !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__)
- #else /* !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__) */
- {' '},
- {' '},
- #endif /* !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__) */
- };
- #endif /* defined(__MMI_MULTITAP_PERSIAN__) */
- /* PMT END PERSIAN */
- #if defined(__MMI_MULTITAP_NORWEGIAN__)
- const UI_character_type default_norwegian_uppercase_multitap_strings[MAX_MULTITAPS][32] =
- {
- {' ', '0', ' '},
- {'.', ',', '-', '?', '!', ''', '@', ':', '1', ')', '(', ';', '*', ' '},
- {'A', 'B', 'C', 0x00C5, 0x00C6, 0x00C1, 0x00C0, 0x00C4, '2', ' '},
- {'D', 'E', 'F', 0x00C9, 0x00C8, '3', ' '},
- {'G', 'H', 'I', '4', ' '},
- {'J', 'K', 'L', '5', ' '},
- {'M', 'N', 'O', 0x00D8, 0x00D3, 0x00D2, 0x00D4, 0x00D6, '6', ' '},
- {'P', 'Q', 'R', 'S', '7', ' '},
- {'T', 'U', 'V', 0x00DC, '8', ' '},
- {'W', 'X', 'Y', 'Z', '9', ' '},
- #if !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__)
- #else /* !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__) */
- {' '},
- {' '},
- #endif /* !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__) */
- };
- const UI_character_type default_norwegian_lowercase_multitap_strings[MAX_MULTITAPS][32] =
- {
- {' ', '0', ' '},
- {'.', ',', '-', '?', '!', ''', '@', ':', '1', ')', '(', ';', '*', ' '},
- {'a', 'b', 'c', 0x00E5, 0x00E6, 0x00E1, 0x00E0, 0x00E4, '2', ' '},
- {'d', 'e', 'f', 0x00E9, 0x00E8, '3', ' '},
- {'g', 'h', 'i', '4', ' '},
- {'j', 'k', 'l', '5', ' '},
- {'m', 'n', 'o', 0x00F8, 0x00F3, 0x00F2, 0x00F4, 0x00F6, '6', ' '},
- {'p', 'q', 'r', 's', 0x00DF, '7', ' '},
- {'t', 'u', 'v', 0x00FC, '8', ' '},
- {'w', 'x', 'y', 'z', '9', ' '},
- #if !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__)
- #else /* !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__) */
- {' '},
- {' '},
- #endif /* !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__) */
- };
- #endif /* defined(__MMI_MULTITAP_NORWEGIAN__) */
- //Norwegian end
- #if defined(__MMI_MULTITAP_SWEDISH__)
- const UI_character_type default_swedish_uppercase_multitap_strings[MAX_MULTITAPS][32] =
- {
- /* {' ','0','.',',','+','*','-','=',':',';',''','"',' '}, */
- {' ', '0', ' '},
- // {'1','@','!','?','#','$','/','_'/*MTK*/,' '},
- {'.', ',', '-', '?', '!', ''', '@', ':', '#', '$', '/', '_', '1', ' '},
- {'A', 'B', 'C', '2', 0x00C4, 0x00C5, ' '},
- {'D', 'E', 'F', '3', 0x00C9, ' '},
- {'G', 'H', 'I', '4', ' '},
- {'J', 'K', 'L', '5', ' '},
- {'M', 'N', 'O', '6', 0x00D6, ' '},
- {'P', 'Q', 'R', 'S', '7', ' '},
- {'T', 'U', 'V', '8', 0x00DC, ' '},
- {'W', 'X', 'Y', 'Z', '9', ' '},
- #if !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__)
- #else /* !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__) */
- {' '},
- {' '},
- #endif /* !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__) */
- };
- const UI_character_type default_swedish_lowercase_multitap_strings[MAX_MULTITAPS][32] =
- {
- /* {' ','0','.',',','+','*','-','=',':',';',''','"',' '}, */
- {' ', '0', ' '},
- // {'1','@','!','?','#','$','/','_'/*MTK*/,' '},
- {'.', ',', '-', '?', '!', ''', '@', ':', '#', '$', '/', '_', '1', ' '},
- {'a', 'b', 'c', '2', 0x00E4, 0x00E5, ' '},
- {'d', 'e', 'f', '3', 0x00E9, ' '},
- {'g', 'h', 'i', '4', ' '},
- {'j', 'k', 'l', '5', ' '},
- {'m', 'n', 'o', '6', 0x00F6, ' '},
- {'p', 'q', 'r', 's', '7', 0x00DF, ' '},
- {'t', 'u', 'v', '8', 0x00FC, ' '},
- {'w', 'x', 'y', 'z', '9', ' '},
- #if !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__)
- #else /* !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__) */
- {' '},
- {' '},
- #endif /* !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__) */
- };
- #endif /* defined(__MMI_MULTITAP_SWEDISH__) */
- #if defined(__MMI_MULTITAP_CROATIAN__)
- const UI_character_type default_croatian_uppercase_multitap_strings[MAX_MULTITAPS][32] =
- {
- /* {' ','0','.',',','+','*','-','=',':',';',''','"',' '}, */
- {' ', '0', ' '},
- // {'1','@','!','?','#','$','/','_'/*MTK*/,' '},
- {'.', ',', '-', '?', '!', ''', '@', ':', '#', '$', '/', '_', '1', ')', '(', ';', '*', ' '},
- {'A', 'B', 'C', '2', 0x010c, 0x0106, ' '},
- {'D', 'E', 'F', '3', 0x0110, ' '},
- {'G', 'H', 'I', '4', ' '},
- {'J', 'K', 'L', '5', ' '},
- {'M', 'N', 'O', '6', ' '},
- {'P', 'Q', 'R', 'S', '7', 0x0160, ' '},
- {'T', 'U', 'V', '8', ' '},
- {'W', 'X', 'Y', 'Z', '9', 0x017d, ' '},
- #if !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__)
- #else /* !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__) */
- {' '},
- {' '},
- #endif /* !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__) */
- };
- const UI_character_type default_croatian_lowercase_multitap_strings[MAX_MULTITAPS][32] =
- {
- /* {' ','0','.',',','+','*','-','=',':',';',''','"',' '}, */
- {' ', '0', ' '},
- // {'1','@','!','?','#','$','/','_'/*MTK*/,' '},
- {'.', ',', '-', '?', '!', ''', '@', ':', '#', '$', '/', '_', '1', ')', '(', ';', '*', ' '},
- {'a', 'b', 'c', '2', 0x010d, 0x0107, ' '},
- {'d', 'e', 'f', '3', 0x0111, ' '},
- {'g', 'h', 'i', '4', ' '},
- {'j', 'k', 'l', '5', ' '},
- {'m', 'n', 'o', '6', ' '},
- {'p', 'q', 'r', 's', '7', 0x0161, ' '},
- {'t', 'u', 'v', '8', ' '},
- {'w', 'x', 'y', 'z', '9', 0x017e, ' '},
- #if !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__)
- #else /* !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__) */
- {' '},
- {' '},
- #endif /* !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__) */
- };
- #endif /* defined(__MMI_MULTITAP_CROATIAN__) */
- #if defined(__MMI_MULTITAP_ROMANIAN__)
- const UI_character_type default_romanian_uppercase_multitap_strings[MAX_MULTITAPS][32] =
- {
- //{' ','0','.',',','+','*','-','=',':',';',''','"',' '},
- {' ', '0', ' '},
- //{'1','@','!','?','#','$','/','_'/*MTK*/,' '},
- {'.', ',', '-', '?', '!', ''', '@', ':', '#', '$', '/', '_', '1', ')', '(', ';', '*', ' '},
- {'A', 'B', 'C', '2', 0x0102, 0x00C2, 0x00C1, 0x00C4, ' '},
- {'D', 'E', 'F', '3', 0x00C9, ' '},
- {'G', 'H', 'I', '4', 0x00CE, 0x00CD, ' '},
- {'J', 'K', 'L', '5', ' '},
- {'M', 'N', 'O', '6', 0x00D3, 0x00D6, 0x0150, ' '},
- {'P', 'Q', 'R', 'S', '7', 0x015E, ' '},
- {'T', 'U', 'V', '8', 0x0162, 0x00DA, 0x00DC, 0x0170, ' '},
- {'W', 'X', 'Y', 'Z', '9', ' '},
- #if !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__)
- #else /* !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__) */
- {' '},
- {' '},
- #endif /* !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__) */
- };
- const UI_character_type default_romanian_lowercase_multitap_strings[MAX_MULTITAPS][32] =
- {
- //{' ','0','.',',','+','*','-','=',':',';',''','"',' '},
- {' ', '0', ' '},
- //{'1','@','!','?','#','$','/','_'/*MTK*/,' '},
- {'.', ',', '-', '?', '!', ''', '@', ':', '#', '$', '/', '_', '1', ')', '(', ';', '*', ' '},
- {'a', 'b', 'c', '2', 0x0103, 0x00E2, 0x00E1, 0x00E4, ' '},
- {'d', 'e', 'f', '3', 0x00E9, ' '},
- {'g', 'h', 'i', '4', 0x00EE, 0x00ED, ' '},
- {'j', 'k', 'l', '5', ' '},
- {'m', 'n', 'o', '6', 0x00F3, 0x00F6, 0x0151, ' '},
- {'p', 'q', 'r', 's', '7', 0x015F, 0x00DF, ' '},
- {'t', 'u', 'v', '8', 0x0163, 0x00FA, 0x00FC, 0x0171, ' '},
- {'w', 'x', 'y', 'z', '9', ' '},
- #if !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__)
- #else /* !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__) */
- {' '},
- {' '},
- #endif /* !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__) */
- };
- #endif /* defined(__MMI_MULTITAP_ROMANIAN__) */
- #if defined(__MMI_MULTITAP_SLOVENIAN__)
- const UI_character_type default_slovenian_uppercase_multitap_strings[MAX_MULTITAPS][32] =
- {
- /* {' ','0','.',',','+','*','-','=',':',';',''','"',' '}, */
- {' ', '0', ' '},
- // {'1','@','!','?','#','$','/','_'/*MTK*/,' '},
- {'.', ',', '-', '?', '!', ''', '@', ':', '1', ')', '(', ';', '*', ' '},
- {'A', 'B', 'C', '2', 0x010C, 0x0106, 0x00C1, 0x00C4, ' '},
- {'D', 'E', 'F', '3', 0x0110, 0x00C9, ' '},
- {'G', 'H', 'I', '4', 0x00CD, ' '},
- {'J', 'K', 'L', '5', ' '},
- {'M', 'N', 'O', '6', 0x00D3, 0x00D6, 0x0150, 0x00D4, ' '},
- {'P', 'Q', 'R', 'S', '7', 0x0160, ' '},
- {'T', 'U', 'V', '8', 0x00DA, 0x00DC, 0x0170, ' '},
- {'W', 'X', 'Y', 'Z', '9', 0x017D, ' '},
- #if !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__)
- #else /* !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__) */
- {' '},
- {' '},
- #endif /* !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__) */
- };
- const UI_character_type default_slovenian_lowercase_multitap_strings[MAX_MULTITAPS][32] =
- {
- /* {' ','0','.',',','+','*','-','=',':',';',''','"',' '}, */
- {' ', '0', ' '},
- // {'1','@','!','?','#','$','/','_'/*MTK*/,' '},
- {'.', ',', '-', '?', '!', ''', '@', ':', '1', ')', '(', ';', '*', ' '},
- {'a', 'b', 'c', '2', 0x010D, 0x0107, 0x00E1, 0x00E4, ' '},
- {'d', 'e', 'f', '3', 0x0111, 0x00E9, ' '},
- {'g', 'h', 'i', '4', 0x00ED, ' '},
- {'j', 'k', 'l', '5', ' '},
- {'m', 'n', 'o', '6', 0x00F3, 0x00F6, 0x0151, 0x00F4, ' '},
- {'p', 'q', 'r', 's', '7', 0x0161, 0x00DF, ' '},
- {'t', 'u', 'v', '8', 0x00FA, 0x00FC, 0x0171, ' '},
- {'w', 'x', 'y', 'z', '9', 0x017E, ' '},
- #if !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__)
- #else /* !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__) */
- {' '},
- {' '},
- #endif /* !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__) */
- };
- #endif /* defined(__MMI_MULTITAP_SLOVENIAN__) */
- #if defined(__MMI_MULTITAP_GREEK__)
- const UI_character_type default_greek_uppercase_multitap_strings[MAX_MULTITAPS][32] =
- {
- /* {' ','0','.',',','+','*','-','=',':',';',''','"',' '}, */
- {' ', '0', ' '},
- //{'1','@','!','?','#','$','/','_'/*MTK*/,' '},
- {'.', ',', '-', '?', '!', ''', '@', ':', '#', '$', '/', '_', '1', ';', '(', ')', '*', ' '},
- {'A', 'B', 'C', '2', 0x03b1, 0x03b2, 0x03ac, 0x03b3, ' '},
- {'D', 'E', 'F', '3', 0x03b4, 0x03b5, 0x03b6, 0x03ad, ' '},
- {'G', 'H', 'I', '4', 0x03b7, 0x03b8, 0x03b9, 0x03ae, 0x03af, 0x03ca, 0x0390, ' '},
- {'J', 'K', 'L', '5', 0x03ba, 0x03bb, 0x03bc, ' '},
- {'M', 'N', 'O', '6', 0x03bd, 0x03be, 0x03bf, 0x03cc, ' '},
- {'P', 'Q', 'R', 'S', '7', 0x03c0, 0x03c1, 0x03c3, 0x03c2, ' '},
- {'T', 'U', 'V', '8', 0x03c4, 0x03c5, 0x03c6, 0x03cd, 0x03cb, 0x03b0, ' '},
- {'W', 'X', 'Y', 'Z', '9', 0x03c7, 0x03c8, 0x03c9, 0x03ce, ' '},
- #if !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__)
- #else /* !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__) */
- {' '},
- {' '},
- #endif /* !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__) */
- };
- const UI_character_type default_greek_lowercase_multitap_strings[MAX_MULTITAPS][32] =
- {
- /* {' ','0','.',',','+','*','-','=',':',';',''','"',' '}, */
- {' ', '0', ' '},
- //{'1','@','!','?','#','$','/','_'/*MTK*/,' '},
- {'.', ',', '-', '?', '!', ''', '@', ':', '#', '$', '/', '_', '1', ';', '(', ')', '*', ' '},
- {'a', 'b', 'c', '2', 0x03b1, 0x03b2, 0x03ac, 0x03b3, ' '},
- {'d', 'e', 'f', '3', 0x03b4, 0x03b5, 0x03b6, 0x03ad, ' '},
- {'g', 'h', 'i', '4', 0x03b7, 0x03b8, 0x03b9, 0x03ae, 0x03af, 0x03ca, 0x0390, ' '},
- {'j', 'k', 'l', '5', 0x03ba, 0x03bb, 0x03bc, ' '},
- {'m', 'n', 'o', '6', 0x03bd, 0x03be, 0x03bf, 0x03cc, ' '},
- {'p', 'q', 'r', 's', '7', 0x03c0, 0x03c1, 0x03c3, 0x03c2, ' '},
- {'t', 'u', 'v', '8', 0x03c4, 0x03c5, 0x03c6, 0x03cd, 0x03cb, 0x03b0, ' '},
- {'w', 'x', 'y', 'z', '9', 0x03c7, 0x03c8, 0x03c9, 0x03ce, ' '},
- #if !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__)
- #else /* !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__) */
- {' '},
- {' '},
- #endif /* !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__) */
- };
- #endif /* defined(__MMI_MULTITAP_GREEK__) */
- #if defined(__MMI_MULTITAP_HEBREW__)
- const UI_character_type default_hebrew_multitap_strings[MAX_MULTITAPS][32] =
- {
- {' ', '0', ' '},
- {'.', ',', '-', '?', '!', ''', '@', ':', '1', ';', '(', ')', '*', ' '},
- // {0x002E, 0x002c, 0x002d, 0x003f, 0x0021, 0x0027, 0x0022, 0x003A, 0x0031, ' '},
- {0x05d3, 0x05d4, 0x05d5, 0x0032, ' '},
- {0x05d0, 0x05d1, 0x05d2, 0x0033, ' '},
- {0x05de, 0x05dd, 0x05e0, 0x05df, 0x0034, ' '},
- {0x05d9, 0x05db, 0x05da, 0x05dc, 0x0035, ' '},
- {0x05d6, 0x05d7, 0x05d8, 0x0036, ' '},
- {0x05e8, 0x05e9, 0x05ea, 0x0037, ' '},
- {0x05e6, 0x05e5, 0x05e7, 0x0038, ' '},
- {0x05e1, 0x05e2, 0x05e4, 0x05e3, 0x0039, ' '},
- #if !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__)
- #else /* !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__) */
- {' '},
- {' '},
- #endif /* !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__) */
- };
- #endif /* defined(__MMI_MULTITAP_HEBREW__) */
- //MTK Elvis modify for stacked character--thai
- const UI_character_type default_thai_multitap_strings[MAX_MULTITAPS][32] =
- {
- /* key0 */ {0x0E50, 0x0030, ' '},
- /* key1 */ {0x0E51, 0x0E01, 0x0E02, 0x0E04, 0x0E06, 0x0E07, 0x0E08, 0x0E30, 0x0E31, 0x0031, ' '},
- /* key2 */ {0x0E09, 0x0E0A, 0x0E0B, 0x0E0C, 0x0E0D, 0x0E32, 0x0E33, 0x0E45, 0x0E52, 0x0032, ' '},
- /* key3 */ {0x0E0E, 0x0E0F, 0x0E10, 0x0E11, 0x0E12, 0x0E13, 0x0E34, 0x0E35, 0x0E53, 0x0033, ' '},
- /* key4 */ {0x0E14, 0x0E15, 0x0E16, 0x0E17, 0x0E18, 0x0E19, 0x0E36, 0x0E37, 0x0E54, 0x0034, ' '},
- /* key5 */ {0x0E48, 0x0E49, 0x0E4A, 0x0E4B, 0x0E47, 0x0E4C, 0x0E55, 0x0035, ' '},
- /* key6 */ {0x0E1A, 0x0E1B, 0x0E1C, 0x0E1D, 0x0E1E, 0x0E1F, 0x0E38, 0x0E39, 0x0E56, 0x0036, ' '},
- /* key7 */ {0x0E20, 0x0E21, 0x0E22, 0x0E23, 0x0E24, 0x0E25, 0x0E40, 0x0E41, 0x0E57, 0x0037, ' '},
- /* key8 */ {0x0E27, 0x0E28, 0x0E29, 0x0E2A, 0x0E42, 0x0E46, 0x0E58, 0x0038, ' '},
- /* key9 */ {0x0E2B, 0x0E2C, 0x0E2D, 0x0E2E, 0x0E43, 0x0E44, 0x0E59, 0x0039, ' '},
- #if !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__)
- #else /* !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__) */
- {' '},
- {' '},
- #endif /* !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__) */
- };
- /* MTK end */
- const UI_character_type numberless_uppercase_multitap_strings[MAX_MULTITAPS][32] =
- {
- /* {' ','.',',','+','*','-','=',':',';',''','"',' '}, */
- {' ', ' '},
- // {'1','@','!','?','#','$','/','_'/*MTK*/,' '},
- {'.', ',', '-', '?', '!', ''', '@', ':', '#', '$', '/', '_', ' '},
- {'A', 'B', 'C', ' '},
- {'D', 'E', 'F', ' '},
- {'G', 'H', 'I', ' '},
- {'J', 'K', 'L', ' '},
- {'M', 'N', 'O', ' '},
- {'P', 'Q', 'R', 'S', ' '},
- {'T', 'U', 'V', ' '},
- {'W', 'X', 'Y', 'Z', ' '},
- #if !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__)
- #else /* !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__) */
- {' '},
- {' '},
- #endif /* !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__) */
- };
- const UI_character_type numberless_lowercase_multitap_strings[MAX_MULTITAPS][32] =
- {
- /* {' ','.',',','+','*','-','=',':',';',''','"',' '}, */
- {' ', ' '},
- // {'1','@','!','?','#','$','/','_'/*MTK*/,' '},
- {'.', ',', '-', '?', '!', ''', '@', ':', '#', '$', '/', '_', ' '},
- {'a', 'b', 'c', ' '},
- {'d', 'e', 'f', ' '},
- {'g', 'h', 'i', ' '},
- {'j', 'k', 'l', ' '},
- {'m', 'n', 'o', ' '},
- {'p', 'q', 'r', 's', ' '},
- {'t', 'u', 'v', ' '},
- {'w', 'x', 'y', 'z', ' '},
- #if !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__)
- #else /* !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__) */
- {' '},
- {' '},
- #endif /* !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__) */
- };
- /* MTK Terry for English Only */
- const UI_character_type english_only_uppercase_multitap_strings[MAX_MULTITAPS][32] =
- {
- /* {' ','.',',','+','*','-','=',':',';',''','"',' '}, */
- {' ', '0', ' '},
- // {'1','@','!','?','#','$','/','_'/*MTK*/,' '},
- {'.', ',', '-', '?', '!', ''', '@', ':', '#', '$', '/', '_', '1', ' '},
- {'A', 'B', 'C', '2', ' '},
- {'D', 'E', 'F', '3', ' '},
- {'G', 'H', 'I', '4', ' '},
- {'J', 'K', 'L', '5', ' '},
- {'M', 'N', 'O', '6', ' '},
- {'P', 'Q', 'R', 'S', '7', ' '},
- {'T', 'U', 'V', '8', ' '},
- {'W', 'X', 'Y', 'Z', '9', ' '},
- #if !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__)
- #else /* !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__) */
- {' '},
- {' '},
- #endif /* !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__) */
- };
- const UI_character_type english_only_lowercase_multitap_strings[MAX_MULTITAPS][32] =
- {
- /* {' ','.',',','+','*','-','=',':',';',''','"',' '}, */
- {' ', '0', ' '},
- // {'1','@','!','?','#','$','/','_'/*MTK*/,' '},
- {'.', ',', '-', '?', '!', ''', '@', ':', '#', '$', '/', '_', '1', ' '},
- {'a', 'b', 'c', '2', ' '},
- {'d', 'e', 'f', '3', ' '},
- {'g', 'h', 'i', '4', ' '},
- {'j', 'k', 'l', '5', ' '},
- {'m', 'n', 'o', '6', ' '},
- {'p', 'q', 'r', 's', '7', ' '},
- {'t', 'u', 'v', '8', ' '},
- {'w', 'x', 'y', 'z', '9', ' '},
- #if !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__)
- #else /* !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__) */
- {' '},
- {' '},
- #endif /* !defined(__MMI_MULTITAP_FOR_STAR_AND_POUND__) */
- };
- multitap_input MMI_uppercase_multitaps[MAX_MULTITAPS];
- multitap_input MMI_lowercase_multitaps[MAX_MULTITAPS];
- multitap_input MMI_hindi_multitaps[MAX_MULTITAPS];
- /* PMT RAKESH START 20061006 */
- #if defined (__MMI_MULTITAP_MARATHI__)
- multitap_input MMI_marathi_multitaps[MAX_MULTITAPS];
- #endif
- /* PMT RAKESH END 20061006 */
- multitap_input MMI_bpmf_multitaps[MAX_MULTITAPS];
- /* PMT dara added for Multitap thai */
- #if defined (__MMI_MULTITAP_THAI__)
- multitap_input MMI_thai_multitaps[MAX_MULTITAPS_THAI];
- #endif
- /* MTK Terry for Spanish French German Italian Russian Turkish Portuguese Indonesian Malay Vietnamese */
- #if defined(__MMI_MULTITAP_SPANISH__)
- multitap_input MMI_spanish_uppercase_multitaps[MAX_MULTITAPS];
- multitap_input MMI_spanish_lowercase_multitaps[MAX_MULTITAPS];
- #endif /* defined(__MMI_MULTITAP_SPANISH__) */
- #if defined(__MMI_MULTITAP_DANISH__)
- multitap_input MMI_danish_uppercase_multitaps[MAX_MULTITAPS];
- multitap_input MMI_danish_lowercase_multitaps[MAX_MULTITAPS];
- #endif /* defined(__MMI_MULTITAP_DANISH__) */
- #if defined(__MMI_MULTITAP_POLISH__)
- multitap_input MMI_polish_uppercase_multitaps[MAX_MULTITAPS];
- multitap_input MMI_polish_lowercase_multitaps[MAX_MULTITAPS];
- #endif /* defined(__MMI_MULTITAP_POLISH__) */
- #if defined(__MMI_MULTITAP_FRENCH__)
- multitap_input MMI_french_uppercase_multitaps[MAX_MULTITAPS];
- multitap_input MMI_french_lowercase_multitaps[MAX_MULTITAPS];
- #endif /* defined(__MMI_MULTITAP_FRENCH__) */
- #if defined(__MMI_MULTITAP_GERMAN__)
- multitap_input MMI_german_uppercase_multitaps[MAX_MULTITAPS];
- multitap_input MMI_german_lowercase_multitaps[MAX_MULTITAPS];
- #endif /* defined(__MMI_MULTITAP_GERMAN__) */
- #if defined(__MMI_MULTITAP_ITALIAN__)
- multitap_input MMI_italian_uppercase_multitaps[MAX_MULTITAPS];
- multitap_input MMI_italian_lowercase_multitaps[MAX_MULTITAPS];
- #endif /* defined(__MMI_MULTITAP_ITALIAN__) */
- #if defined(__MMI_MULTITAP_RUSSIAN__)
- multitap_input MMI_russian_uppercase_multitaps[MAX_MULTITAPS];
- multitap_input MMI_russian_lowercase_multitaps[MAX_MULTITAPS];
- #endif /* defined(__MMI_MULTITAP_RUSSIAN__) */
- #if defined(__MMI_MULTITAP_BULGARIAN__)
- multitap_input MMI_bulgarian_uppercase_multitaps[MAX_MULTITAPS];
- multitap_input MMI_bulgarian_lowercase_multitaps[MAX_MULTITAPS];
- #endif /* defined(__MMI_MULTITAP_BULGARIAN__) */
- #if defined(__MMI_MULTITAP_TURKISH__)
- multitap_input MMI_turkish_uppercase_multitaps[MAX_MULTITAPS];
- multitap_input MMI_turkish_lowercase_multitaps[MAX_MULTITAPS];
- #endif /* defined(__MMI_MULTITAP_TURKISH__) */
- #if defined(__MMI_MULTITAP_PORTUGUESE__)
- multitap_input MMI_portuguese_uppercase_multitaps[MAX_MULTITAPS];
- multitap_input MMI_portuguese_lowercase_multitaps[MAX_MULTITAPS];
- #endif /* defined(__MMI_MULTITAP_PORTUGUESE__) */
- #if defined(__MMI_MULTITAP_INDONESIAN__)
- multitap_input MMI_indonesian_uppercase_multitaps[MAX_MULTITAPS];
- multitap_input MMI_indonesian_lowercase_multitaps[MAX_MULTITAPS];
- #endif /* defined(__MMI_MULTITAP_INDONESIAN__) */
- #if defined(__MMI_MULTITAP_CZECH__)
- multitap_input MMI_czech_uppercase_multitaps[MAX_MULTITAPS];
- multitap_input MMI_czech_lowercase_multitaps[MAX_MULTITAPS];
- #endif /* defined(__MMI_MULTITAP_CZECH__) */
- #if defined(__MMI_MULTITAP_MALAY__)
- multitap_input MMI_malay_uppercase_multitaps[MAX_MULTITAPS];
- multitap_input MMI_malay_lowercase_multitaps[MAX_MULTITAPS];
- #endif /* defined(__MMI_MULTITAP_MALAY__) */
- #if defined(__MMI_MULTITAP_VIETNAMESE__)
- multitap_input MMI_vietnamese_uppercase_multitaps[MAX_MULTITAPS];
- multitap_input MMI_vietnamese_lowercase_multitaps[MAX_MULTITAPS];
- #endif /* defined(__MMI_MULTITAP_VIETNAMESE__) */
- #if defined(__MMI_MULTITAP_FINNISH__)
- multitap_input MMI_finnish_uppercase_multitaps[MAX_MULTITAPS];
- multitap_input MMI_finnish_lowercase_multitaps[MAX_MULTITAPS];
- #endif /* defined(__MMI_MULTITAP_FINNISH__) */
- #if defined(__MMI_MULTITAP_HUNGARIAN__)
- multitap_input MMI_hungarian_uppercase_multitaps[MAX_MULTITAPS];
- multitap_input MMI_hungarian_lowercase_multitaps[MAX_MULTITAPS];
- #endif /* defined(__MMI_MULTITAP_HUNGARIAN__) */
- #if defined(__MMI_MULTITAP_SWEDISH__)
- multitap_input MMI_swedish_uppercase_multitaps[MAX_MULTITAPS];
- multitap_input MMI_swedish_lowercase_multitaps[MAX_MULTITAPS];
- #endif /* defined(__MMI_MULTITAP_SWEDISH__) */
- #if defined(__MMI_MULTITAP_HEBREW__)
- multitap_input MMI_hebrew_multitaps[MAX_MULTITAPS];
- #endif
- #if defined(__MMI_MULTITAP_SLOVAK__)
- multitap_input MMI_slovak_uppercase_multitaps[MAX_MULTITAPS];
- multitap_input MMI_slovak_lowercase_multitaps[MAX_MULTITAPS];
- #endif /* defined(__MMI_MULTITAP_SLOVAK__) */
- #if defined(__MMI_MULTITAP_DUTCH__)
- multitap_input MMI_dutch_uppercase_multitaps[MAX_MULTITAPS];
- multitap_input MMI_dutch_lowercase_multitaps[MAX_MULTITAPS];
- #endif /* defined(__MMI_MULTITAP_DUTCH__) */
- /* Norwegian start */
- #if defined(__MMI_MULTITAP_NORWEGIAN__)
- multitap_input MMI_norwegian_uppercase_multitaps[MAX_MULTITAPS];
- multitap_input MMI_norwegian_lowercase_multitaps[MAX_MULTITAPS];
- #endif /* defined(__MMI_MULTITAP_NORWEGIAN__) */
- /* Norwegian end */
- #if defined(__MMI_MULTITAP_ARABIC__)
- multitap_input MMI_arabic_multitaps[MAX_MULTITAPS];
- #endif
- /* PMT START PERSIAN */
- #if defined(__MMI_MULTITAP_PERSIAN__)
- multitap_input MMI_persian_multitaps[MAX_MULTITAPS];
- #endif
- //PMT END PERSIAN
- #if defined(__MMI_MULTITAP_CROATIAN__)
- multitap_input MMI_croatian_uppercase_multitaps[MAX_MULTITAPS];
- multitap_input MMI_croatian_lowercase_multitaps[MAX_MULTITAPS];
- #endif /* defined(__MMI_MULTITAP_CROATIAN__) */
- #if defined(__MMI_MULTITAP_ROMANIAN__)
- multitap_input MMI_romanian_uppercase_multitaps[MAX_MULTITAPS];
- multitap_input MMI_romanian_lowercase_multitaps[MAX_MULTITAPS];
- #endif /* defined(__MMI_MULTITAP_ROMANIAN__) */
- #if defined(__MMI_MULTITAP_SLOVENIAN__)
- multitap_input MMI_slovenian_uppercase_multitaps[MAX_MULTITAPS];
- multitap_input MMI_slovenian_lowercase_multitaps[MAX_MULTITAPS];
- #endif /* defined(__MMI_MULTITAP_SLOVENIAN__) */
- #if defined(__MMI_MULTITAP_GREEK__)
- multitap_input MMI_greek_uppercase_multitaps[MAX_MULTITAPS];
- multitap_input MMI_greek_lowercase_multitaps[MAX_MULTITAPS];
- #endif /* defined(__MMI_MULTITAP_GREEK__) */
- #if defined(__MMI_WCSS_INPUT_FORMAT_SUPPORT__)
- multitap_input MMI_uppercase_numberless_multitaps[MAX_MULTITAPS];
- multitap_input MMI_lowercase_numberless_multitaps[MAX_MULTITAPS];
- #endif /* defined(__MMI_WCSS_INPUT_FORMAT_SUPPORT__) */
- U8 MMI_current_multitap_mode = 0;
- //PMT dara added for Multitap thai
- //W05.36 Fix Vietnamese Tone Input Issue
- mmi_editor_inoutbox_enum MMI_current_input_box_type = EDITOR_NONE_INPUT_BOX;
- #ifdef __MMI_MULTITAP_THAI__
- /* byte MMI_current_inputbox_type=0; */
- U8 MMI_update_multitap_thai = 0;
- #endif /* __MMI_MULTITAP_THAI__ */
- S32 MMI_active_multitap = -1;
- S32 MMI_timer_multitap = -1;
- void (*hide_multitap) (void);
- /* W05.36 Fix Vietnamese Tone Input Issue */
- /*****************************************************************************
- * FUNCTION
- * set_current_input_box_type
- * DESCRIPTION
- *
- * PARAMETERS
- * input_box_type [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void set_current_input_box_type(mmi_editor_inoutbox_enum input_box_type)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- MMI_current_input_box_type = input_box_type;
- }
- /*****************************************************************************
- * FUNCTION
- * get_multitap_state
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- *
- *****************************************************************************/
- MMI_BOOL get_multitap_state(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- switch (MMI_current_input_box_type)
- {
- case EDITOR_MULTILINE_INPUT_BOX:
- case EDITOR_INLINE_MULTILINE_INPUT_BOX:
- if (UI_MULTI_LINE_INPUT_BOX_STATE_MULTITAP & MMI_multiline_inputbox.flags)
- {
- return MMI_TRUE;
- }
- case EDITOR_EMS_INPUT_BOX:
- if (UI_EMS_INPUT_BOX_STATE_MULTITAP & MMI_EMS_inputbox.flags)
- {
- return MMI_TRUE;
- }
- case EDITOR_SINGLE_LINE_INPU_BOX:
- if (UI_SINGLE_LINE_INPUT_BOX_STATE_MULTITAP & MMI_singleline_inputbox.flags)
- {
- return MMI_TRUE;
- }
- case EDITOR_INLINE_TEXT:
- if (UI_SINGLE_LINE_INPUT_BOX_STATE_MULTITAP & MMI_inline_singleline_inputbox.flags)
- {
- return MMI_TRUE;
- }
- break;
- }
- return MMI_FALSE;
- }
- #ifdef __MMI_LANG_VIETNAMESE__
- /*****************************************************************************
- * FUNCTION
- * get_viet_multitap_string
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- *
- *****************************************************************************/
- UI_character_type *get_viet_multitap_string(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- UI_character_type previous_char = 0;
- /* W05.37 Fix Vietnamese Tone Issue Side effect */
- U8 test_input_mode = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (test_change_input_mode)
- {
- test_input_mode = test_change_input_mode();
- }
- switch (MMI_current_input_box_type)
- {
- case EDITOR_MULTILINE_INPUT_BOX:
- case EDITOR_INLINE_MULTILINE_INPUT_BOX:
- previous_char = gui_multi_line_current_character(&MMI_multiline_inputbox);
- break;
- case EDITOR_EMS_INPUT_BOX:
- previous_char = gui_EMS_current_character(&MMI_EMS_inputbox);
- break;
- case EDITOR_SINGLE_LINE_INPU_BOX:
- previous_char = gui_single_line_current_character(&MMI_singleline_inputbox);
- break;
- case EDITOR_INLINE_TEXT:
- previous_char = gui_single_line_current_character(&MMI_inline_singleline_inputbox);
- break;
- }
- if (VIET_VOWEL_NONE == mmi_viet_vowel_letter(previous_char) || MMI_allow_only_english_input_modes ||
- !test_input_mode)
- {
- return (UI_character_type*) english_only_uppercase_multitap_strings[MMI_VIET_TONE_KEY];
- }
- else
- {
- return (UI_character_type*) default_uppercase_multitap_strings[MMI_VIET_TONE_KEY];
- }
- }
- #endif /* __MMI_LANG_VIETNAMESE__ */
- /*****************************************************************************
- * FUNCTION
- * show_multitap
- * DESCRIPTION
- * Displays the active multitap object
- *
- * Internal function
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void show_multitap(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- multitap_input *ami = NULL;
- /* PMT dara added for Multitap thai */
- #if defined(__MMI_MULTITAP_THAI__)
- U8 max_multitaps;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_THAI ||
- MMI_current_multitap_mode == INPUT_MODE_MMI_MULTITAP_THAI)
- {
- max_multitaps = MAX_MULTITAPS_THAI;
- }
- else
- {
- max_multitaps = MAX_MULTITAPS;
- }
- #else /* defined(__MMI_MULTITAP_THAI__) */
- U8 max_multitaps = MAX_MULTITAPS;
- #endif /* defined(__MMI_MULTITAP_THAI__) */
- if (MMI_active_multitap >= 0 && MMI_active_multitap < max_multitaps)
- {
- if (MMI_current_multitap_mode == 0)
- {
- ami = &MMI_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == 1)
- {
- ami = &MMI_lowercase_multitaps[MMI_active_multitap];
- }
- /* MTK Elvis to add two more multitap modes */
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_MULTITAP_BPMF)
- {
- ami = &MMI_bpmf_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_MULTITAP_PINYIN)
- {
- ami = &MMI_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_ABC)
- {
- ami = &MMI_lowercase_multitaps[MMI_active_multitap];
- }
- /* MTK end */
- #if defined(__MMI_WCSS_INPUT_FORMAT_SUPPORT__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_ABC_NO_NUMERIC)
- {
- ami = &MMI_uppercase_numberless_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_ABC_NO_NUMERIC)
- {
- ami = &MMI_lowercase_numberless_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_WCSS_INPUT_FORMAT_SUPPORT__) */
- /* PMT dara added for Multitap thai */
- #if defined (__MMI_MULTITAP_THAI__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_THAI)
- {
- ami = &MMI_thai_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_MULTITAP_THAI)
- {
- ami = &MMI_thai_multitaps[MMI_active_multitap];
- }
- #endif /* defined (__MMI_MULTITAP_THAI__) */
- /* MTK Terry for Spanish French German Italian Russian Turkish Portuguese Indonesian Malay Vietnamese */
- #if defined(__MMI_MULTITAP_SPANISH__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_SPANISH)
- {
- ami = &MMI_spanish_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_SPANISH)
- {
- ami = &MMI_spanish_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_SPANISH)
- {
- ami = &MMI_spanish_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_SPANISH__) */
- #if defined(__MMI_MULTITAP_DANISH__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_DANISH)
- {
- ami = &MMI_danish_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_DANISH)
- {
- ami = &MMI_danish_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_DANISH)
- {
- ami = &MMI_danish_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_DANISH__) */
- #if defined(__MMI_MULTITAP_POLISH__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_POLISH)
- {
- ami = &MMI_polish_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_POLISH)
- {
- ami = &MMI_polish_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_POLISH)
- {
- ami = &MMI_polish_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_POLISH__) */
- #if defined(__MMI_MULTITAP_FRENCH__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_FRENCH)
- {
- ami = &MMI_french_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_FRENCH)
- {
- ami = &MMI_french_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_FRENCH)
- {
- ami = &MMI_french_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_FRENCH__) */
- #if defined(__MMI_MULTITAP_GERMAN__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_GERMAN)
- {
- ami = &MMI_german_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_GERMAN)
- {
- ami = &MMI_german_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_GERMAN)
- {
- ami = &MMI_german_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_GERMAN__) */
- #if defined(__MMI_MULTITAP_ITALIAN__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_ITALIAN)
- {
- ami = &MMI_italian_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_ITALIAN)
- {
- ami = &MMI_italian_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_ITALIAN)
- {
- ami = &MMI_italian_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_ITALIAN__) */
- #if defined(__MMI_MULTITAP_RUSSIAN__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_RUSSIAN)
- {
- ami = &MMI_russian_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_RUSSIAN)
- {
- ami = &MMI_russian_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_RUSSIAN)
- {
- ami = &MMI_russian_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_RUSSIAN__) */
- #if defined(__MMI_MULTITAP_BULGARIAN__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_BULGARIAN)
- {
- ami = &MMI_bulgarian_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_BULGARIAN)
- {
- ami = &MMI_bulgarian_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_BULGARIAN)
- {
- ami = &MMI_bulgarian_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_BULGARIAN__) */
- #if defined(__MMI_MULTITAP_TURKISH__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_TURKISH)
- {
- ami = &MMI_turkish_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_TURKISH)
- {
- ami = &MMI_turkish_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_TURKISH)
- {
- ami = &MMI_turkish_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_TURKISH__) */
- #if defined(__MMI_MULTITAP_PORTUGUESE__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_PORTUGUESE)
- {
- ami = &MMI_portuguese_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_PORTUGUESE)
- {
- ami = &MMI_portuguese_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_PORTUGUESE)
- {
- ami = &MMI_portuguese_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_PORTUGUESE__) */
- /* PMT RAKESH START 20061006 */
- #if defined(__MMI_MULTITAP_HINDI__)
- /* PMT RAKESH END 20061006 */
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_HINDI)
- {
- ami = &MMI_hindi_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_HINDI__) */
- /* PMT RAKESH START 20061006 */
- #if defined (__MMI_MULTITAP_MARATHI__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_MARATHI)
- {
- ami = &MMI_marathi_multitaps[MMI_active_multitap];
- }
- #endif /* defined (__MMI_MULTITAP_MARATHI__) */
- /* PMT RAKESH END 20061006 */
- #if defined(__MMI_MULTITAP_INDONESIAN__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_INDONESIAN)
- {
- ami = &MMI_indonesian_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_INDONESIAN)
- {
- ami = &MMI_indonesian_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_INDONESIAN)
- {
- ami = &MMI_indonesian_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_INDONESIAN__) */
- #if defined(__MMI_MULTITAP_CZECH__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_CZECH)
- {
- ami = &MMI_czech_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_CZECH)
- {
- ami = &MMI_czech_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_CZECH)
- {
- ami = &MMI_czech_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_CZECH__) */
- #if defined(__MMI_MULTITAP_MALAY__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_MALAY)
- {
- ami = &MMI_malay_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_MALAY)
- {
- ami = &MMI_malay_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_MALAY)
- {
- ami = &MMI_malay_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_MALAY__) */
- #if defined(__MMI_MULTITAP_VIETNAMESE__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_VIETNAMESE)
- {
- ami = &MMI_vietnamese_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_VIETNAMESE)
- {
- ami = &MMI_vietnamese_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_VIETNAMESE)
- {
- ami = &MMI_vietnamese_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_VIETNAMESE__) */
- #if defined(__MMI_MULTITAP_FINNISH__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_FINNISH)
- {
- ami = &MMI_finnish_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_FINNISH)
- {
- ami = &MMI_finnish_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_FINNISH)
- {
- ami = &MMI_finnish_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_FINNISH__) */
- #if defined(__MMI_MULTITAP_HUNGARIAN__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_HUNGARIAN)
- {
- ami = &MMI_hungarian_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_HUNGARIAN)
- {
- ami = &MMI_hungarian_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_HUNGARIAN)
- {
- ami = &MMI_hungarian_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_HUNGARIAN__) */
- #if defined(__MMI_MULTITAP_SWEDISH__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_SWEDISH)
- {
- ami = &MMI_swedish_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_SWEDISH)
- {
- ami = &MMI_swedish_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_SWEDISH)
- {
- ami = &MMI_swedish_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_SWEDISH__) */
- #if defined(__MMI_MULTITAP_HEBREW__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_HEBREW)
- {
- ami = &MMI_hebrew_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_MULTITAP_HEBREW)
- {
- ami = &MMI_hebrew_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_HEBREW__) */
- #if defined(__MMI_MULTITAP_SLOVAK__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_SLOVAK)
- {
- ami = &MMI_slovak_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_SLOVAK)
- {
- ami = &MMI_slovak_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_SLOVAK)
- {
- ami = &MMI_slovak_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_SLOVAK__) */
- #if defined(__MMI_MULTITAP_DUTCH__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_DUTCH)
- {
- ami = &MMI_dutch_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_DUTCH)
- {
- ami = &MMI_dutch_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_DUTCH)
- {
- ami = &MMI_dutch_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_DUTCH__) */
- /* Norwegian start */
- #if defined(__MMI_MULTITAP_NORWEGIAN__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_NORWEGIAN)
- {
- ami = &MMI_norwegian_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_NORWEGIAN)
- {
- ami = &MMI_norwegian_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_NORWEGIAN)
- {
- ami = &MMI_norwegian_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_NORWEGIAN__) */
- /* Norwegian end */
- #if defined(__MMI_MULTITAP_ARABIC__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_ARABIC)
- {
- ami = &MMI_arabic_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_MULTITAP_ARABIC)
- {
- ami = &MMI_arabic_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_ARABIC__) */
- /* PMT START PERSIAN */
- #if defined(__MMI_MULTITAP_PERSIAN__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_PERSIAN)
- {
- ami = &MMI_persian_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_MULTITAP_PERSIAN)
- {
- ami = &MMI_persian_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_PERSIAN__) */
- //PMT END PERSIAN
- #if defined(__MMI_MULTITAP_CROATIAN__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_CROATIAN)
- {
- ami = &MMI_croatian_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_CROATIAN)
- {
- ami = &MMI_croatian_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_CROATIAN)
- {
- ami = &MMI_croatian_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_CROATIAN__) */
- #if defined(__MMI_MULTITAP_ROMANIAN__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_ROMANIAN)
- {
- ami = &MMI_romanian_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_ROMANIAN)
- {
- ami = &MMI_romanian_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_ROMANIAN)
- {
- ami = &MMI_romanian_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_ROMANIAN__) */
- #if defined(__MMI_MULTITAP_SLOVENIAN__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_SLOVENIAN)
- {
- ami = &MMI_slovenian_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_SLOVENIAN)
- {
- ami = &MMI_slovenian_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_SLOVENIAN)
- {
- ami = &MMI_slovenian_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_SLOVENIAN__) */
- #if defined(__MMI_MULTITAP_GREEK__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_GREEK)
- {
- ami = &MMI_greek_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_GREEK)
- {
- ami = &MMI_greek_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_GREEK)
- {
- ami = &MMI_greek_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_GREEK__) */
- if (ami != NULL)
- {
- gui_show_multitap_input(ami);
- }
- }
- #if(UI_DOUBLE_BUFFER_SUPPORT)
- gui_BLT_double_buffer(ami->x, ami->y, (ami->x + ami->width /* +1 */ ), (ami->y + ami->height /* +1 */ ));
- #endif
- }
- #ifdef __MMI_TOUCH_SCREEN__
- /* no output event because multitap_input has its own callback function */
- /*****************************************************************************
- * FUNCTION
- * wgui_multitap_translate_and_handle_pen_event
- * DESCRIPTION
- *
- * PARAMETERS
- * x [IN]
- * y [IN]
- * pen_event [IN]
- * RETURNS
- *
- *****************************************************************************/
- BOOL wgui_multitap_translate_and_handle_pen_event(S32 x, S32 y, mmi_pen_event_type_enum pen_event)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- multitap_input *ami = NULL;
- S32 index;
- BOOL ret;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (MMI_active_multitap >= 0 && MMI_active_multitap < MAX_MULTITAPS)
- {
- if (MMI_current_multitap_mode == 0)
- {
- ami = &MMI_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == 1)
- {
- ami = &MMI_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_MULTITAP_BPMF)
- {
- ami = &MMI_bpmf_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_MULTITAP_PINYIN)
- {
- ami = &MMI_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_ABC)
- {
- ami = &MMI_lowercase_multitaps[MMI_active_multitap];
- }
- #if defined(__MMI_WCSS_INPUT_FORMAT_SUPPORT__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_ABC_NO_NUMERIC)
- {
- ami = &MMI_uppercase_numberless_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_ABC_NO_NUMERIC)
- {
- ami = &MMI_lowercase_numberless_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_WCSS_INPUT_FORMAT_SUPPORT__) */
- /* PMT dara added for Multitap thai */
- #if defined (__MMI_MULTITAP_THAI__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_THAI)
- {
- ami = &MMI_thai_multitaps[MMI_active_multitap];
- }
- #endif /* defined (__MMI_MULTITAP_THAI__) */
- #if defined(__MMI_MULTITAP_SPANISH__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_SPANISH)
- {
- ami = &MMI_spanish_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_SPANISH)
- {
- ami = &MMI_spanish_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_SPANISH)
- {
- ami = &MMI_spanish_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_SPANISH__) */
- #if defined(__MMI_MULTITAP_DANISH__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_DANISH)
- {
- ami = &MMI_danish_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_DANISH)
- {
- ami = &MMI_danish_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_DANISH)
- {
- ami = &MMI_danish_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_DANISH__) */
- #if defined(__MMI_MULTITAP_POLISH__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_POLISH)
- {
- ami = &MMI_polish_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_POLISH)
- {
- ami = &MMI_polish_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_POLISH)
- {
- ami = &MMI_polish_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_POLISH__) */
- #if defined(__MMI_MULTITAP_FRENCH__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_FRENCH)
- {
- ami = &MMI_french_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_FRENCH)
- {
- ami = &MMI_french_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_FRENCH)
- {
- ami = &MMI_french_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_FRENCH__) */
- #if defined(__MMI_MULTITAP_GERMAN__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_GERMAN)
- {
- ami = &MMI_german_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_GERMAN)
- {
- ami = &MMI_german_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_GERMAN)
- {
- ami = &MMI_german_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_GERMAN__) */
- #if defined(__MMI_MULTITAP_ITALIAN__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_ITALIAN)
- {
- ami = &MMI_italian_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_ITALIAN)
- {
- ami = &MMI_italian_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_ITALIAN)
- {
- ami = &MMI_italian_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_ITALIAN__) */
- #if defined(__MMI_MULTITAP_RUSSIAN__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_RUSSIAN)
- {
- ami = &MMI_russian_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_RUSSIAN)
- {
- ami = &MMI_russian_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_RUSSIAN)
- {
- ami = &MMI_russian_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_RUSSIAN__) */
- #if defined(__MMI_MULTITAP_BULGARIAN__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_BULGARIAN)
- {
- ami = &MMI_bulgarian_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_BULGARIAN)
- {
- ami = &MMI_bulgarian_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_BULGARIAN)
- {
- ami = &MMI_bulgarian_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_BULGARIAN__) */
- #if defined(__MMI_MULTITAP_TURKISH__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_TURKISH)
- {
- ami = &MMI_turkish_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_TURKISH)
- {
- ami = &MMI_turkish_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_TURKISH)
- {
- ami = &MMI_turkish_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_TURKISH__) */
- #if defined(__MMI_MULTITAP_PORTUGUESE__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_PORTUGUESE)
- {
- ami = &MMI_portuguese_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_PORTUGUESE)
- {
- ami = &MMI_portuguese_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_PORTUGUESE)
- {
- ami = &MMI_portuguese_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_PORTUGUESE__) */
- /* PMT RAKESH START 20061006 */
- #if defined(__MMI_MULTITAP_HINDI__)
- /* PMT RAKESH END 20061006 */
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_HINDI)
- {
- ami = &MMI_hindi_multitaps[MMI_active_multitap];
- }
- /* PMT RAKESH START 20061006 */
- #endif /* defined(__MMI_MULTITAP_HINDI__) */
- /* PMT RAKESH END 20061006 */
- #if defined(__MMI_MULTITAP_INDONESIAN__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_INDONESIAN)
- {
- ami = &MMI_indonesian_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_INDONESIAN)
- {
- ami = &MMI_indonesian_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_INDONESIAN)
- {
- ami = &MMI_indonesian_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_INDONESIAN__) */
- #if defined(__MMI_MULTITAP_CZECH__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_CZECH)
- {
- ami = &MMI_czech_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_CZECH)
- {
- ami = &MMI_czech_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_CZECH)
- {
- ami = &MMI_czech_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_CZECH__) */
- #if defined(__MMI_MULTITAP_MALAY__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_MALAY)
- {
- ami = &MMI_malay_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_MALAY)
- {
- ami = &MMI_malay_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_MALAY)
- {
- ami = &MMI_malay_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_MALAY__) */
- #if defined(__MMI_MULTITAP_VIETNAMESE__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_VIETNAMESE)
- {
- ami = &MMI_vietnamese_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_VIETNAMESE)
- {
- ami = &MMI_vietnamese_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_VIETNAMESE)
- {
- ami = &MMI_vietnamese_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_VIETNAMESE__) */
- #if defined(__MMI_MULTITAP_HEBREW__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_HEBREW)
- {
- ami = &MMI_hebrew_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_MULTITAP_HEBREW)
- {
- ami = &MMI_hebrew_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_HEBREW__) */
- #if defined(__MMI_MULTITAP_FINNISH__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_FINNISH)
- {
- ami = &MMI_finnish_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_FINNISH)
- {
- ami = &MMI_finnish_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_FINNISH)
- {
- ami = &MMI_finnish_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_FINNISH__) */
- #if defined(__MMI_MULTITAP_HUNGARIAN__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_HUNGARIAN)
- {
- ami = &MMI_hungarian_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_HUNGARIAN)
- {
- ami = &MMI_hungarian_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_HUNGARIAN)
- {
- ami = &MMI_hungarian_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_HUNGARIAN__) */
- #if defined(__MMI_MULTITAP_SLOVAK__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_SLOVAK)
- {
- ami = &MMI_slovak_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_SLOVAK)
- {
- ami = &MMI_slovak_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_SLOVAK)
- {
- ami = &MMI_slovak_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_SLOVAK__) */
- #if defined(__MMI_MULTITAP_DUTCH__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_DUTCH)
- {
- ami = &MMI_dutch_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_DUTCH)
- {
- ami = &MMI_dutch_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_DUTCH)
- {
- ami = &MMI_dutch_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_DUTCH__) */
- #if defined(__MMI_MULTITAP_ARABIC__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_ARABIC)
- {
- ami = &MMI_arabic_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_MULTITAP_ARABIC)
- {
- ami = &MMI_arabic_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_ARABIC__) */
- /* PMT START PERSIAN */
- #if defined(__MMI_MULTITAP_PERSIAN__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_PERSIAN)
- {
- ami = &MMI_persian_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_MULTITAP_PERSIAN)
- {
- ami = &MMI_persian_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_PERSIAN__) */
- /* PMT END PERSIAN */
- #if defined(__MMI_MULTITAP_NORWEGIAN__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_NORWEGIAN)
- {
- ami = &MMI_norwegian_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_NORWEGIAN)
- {
- ami = &MMI_norwegian_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_NORWEGIAN)
- {
- ami = &MMI_norwegian_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_NORWEGIAN__) */
- //Norwegian end
- #if defined(__MMI_MULTITAP_SWEDISH__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_SWEDISH)
- {
- ami = &MMI_swedish_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_SWEDISH)
- {
- ami = &MMI_swedish_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_SWEDISH)
- {
- ami = &MMI_swedish_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_SWEDISH__) */
- #if defined(__MMI_MULTITAP_CROATIAN__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_CROATIAN)
- {
- ami = &MMI_croatian_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_CROATIAN)
- {
- ami = &MMI_croatian_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_CROATIAN)
- {
- ami = &MMI_croatian_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_CROATIAN__) */
- #if defined(__MMI_MULTITAP_ROMANIAN__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_ROMANIAN)
- {
- ami = &MMI_romanian_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_ROMANIAN)
- {
- ami = &MMI_romanian_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_ROMANIAN)
- {
- ami = &MMI_romanian_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_ROMANIAN__) */
- #if defined(__MMI_MULTITAP_SLOVENIAN__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_SLOVENIAN)
- {
- ami = &MMI_slovenian_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_SLOVENIAN)
- {
- ami = &MMI_slovenian_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_SLOVENIAN)
- {
- ami = &MMI_slovenian_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_SLOVENIAN__) */
- #if defined(__MMI_MULTITAP_GREEK__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_GREEK)
- {
- ami = &MMI_greek_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_GREEK)
- {
- ami = &MMI_greek_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_GREEK)
- {
- ami = &MMI_greek_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_GREEK__) */
- }
- ret = MMI_TRUE;
- if (ami != NULL)
- {
- switch (pen_event)
- {
- case MMI_PEN_EVENT_DOWN:
- if (gui_multitap_input_translate_pen_position(ami, x, y, &index))
- {
- ami->current_position = index;
- show_multitap();
- ami->input_callback(ami->text[ami->current_position]);
- gui_cancel_timer(disable_active_multitap);
- }
- else
- {
- ret = MMI_FALSE;
- }
- break;
- case MMI_PEN_EVENT_UP:
- gui_start_timer(MMI_MULTITAP_TIMEOUT, disable_active_multitap);
- break;
- case MMI_PEN_EVENT_MOVE:
- if (gui_multitap_input_translate_pen_position(ami, x, y, &index))
- {
- ami->current_position = index;
- show_multitap();
- ami->input_callback(ami->text[ami->current_position]);
- gui_cancel_timer(disable_active_multitap);
- }
- else
- {
- ret = MMI_FALSE;
- }
- break;
- case MMI_PEN_EVENT_LONG_TAP:
- break;
- case MMI_PEN_EVENT_REPEAT:
- break;
- case MMI_PEN_EVENT_ABORT:
- break;
- }
- }
- else
- {
- ret = MMI_FALSE;
- }
- return ret;
- }
- #endif /* __MMI_TOUCH_SCREEN__ */
- /*****************************************************************************
- * FUNCTION
- * disable_active_multitap
- * DESCRIPTION
- * disables the active multitap object
- *
- * Internal function
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void disable_active_multitap(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- multitap_input *ami = NULL;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* W06.09 Touch Screen With Keypad V1 */
- #if defined(__MMI_TOUCH_SCREEN__)
- mmi_pen_editor_bpmf_pinyin_disable_active_multitap();
- #endif
- if (MMI_active_multitap < 0)
- {
- return;
- }
- // for multitap timing issue
- if (MMI_timer_multitap != MMI_active_multitap)
- {
- return;
- }
- //MTK Elvis to add some APIs for Qsearch
- //(MMI_current_multitap_mode==0) ami=&MMI_uppercase_multitaps[MMI_active_multitap];
- //se if(MMI_current_multitap_mode==1) ami=&MMI_lowercase_multitaps[MMI_active_multitap];
- switch (MMI_current_multitap_mode)
- {
- case INPUT_MODE_MULTITAP_UPPERCASE_ABC:
- ami = &MMI_uppercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_ABC:
- ami = &MMI_lowercase_multitaps[MMI_active_multitap];
- break;
- /* PMT dara added for Multitap thai */
- #if defined (__MMI_MULTITAP_THAI__)
- case INPUT_MODE_MULTITAP_THAI:
- ami = &MMI_thai_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MMI_MULTITAP_THAI:
- ami = &MMI_thai_multitaps[MMI_active_multitap];
- break;
- #endif /* defined (__MMI_MULTITAP_THAI__) */
- /* MTK Terry for Spanish French German Italian Russian Turkish Portuguese Indonesian Malay Vietnamese */
- #if defined(__MMI_MULTITAP_SPANISH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_SPANISH:
- ami = &MMI_spanish_uppercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_SPANISH:
- ami = &MMI_spanish_lowercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MMI_LOWERCASE_SPANISH:
- ami = &MMI_spanish_lowercase_multitaps[MMI_active_multitap];
- break;
- #endif /* defined(__MMI_MULTITAP_SPANISH__) */
- #if defined(__MMI_MULTITAP_DANISH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_DANISH:
- ami = &MMI_danish_uppercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_DANISH:
- ami = &MMI_danish_lowercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MMI_LOWERCASE_DANISH:
- ami = &MMI_danish_lowercase_multitaps[MMI_active_multitap];
- break;
- #endif /* defined(__MMI_MULTITAP_DANISH__) */
- #if defined(__MMI_MULTITAP_POLISH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_POLISH:
- ami = &MMI_polish_uppercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_POLISH:
- ami = &MMI_polish_lowercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MMI_LOWERCASE_POLISH:
- ami = &MMI_polish_lowercase_multitaps[MMI_active_multitap];
- break;
- #endif /* defined(__MMI_MULTITAP_POLISH__) */
- #if defined(__MMI_MULTITAP_FRENCH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_FRENCH:
- ami = &MMI_french_uppercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_FRENCH:
- ami = &MMI_french_lowercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MMI_LOWERCASE_FRENCH:
- ami = &MMI_french_lowercase_multitaps[MMI_active_multitap];
- break;
- #endif /* defined(__MMI_MULTITAP_FRENCH__) */
- #if defined(__MMI_MULTITAP_GERMAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_GERMAN:
- ami = &MMI_german_uppercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_GERMAN:
- ami = &MMI_german_lowercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MMI_LOWERCASE_GERMAN:
- ami = &MMI_german_lowercase_multitaps[MMI_active_multitap];
- break;
- #endif /* defined(__MMI_MULTITAP_GERMAN__) */
- #if defined(__MMI_MULTITAP_ITALIAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_ITALIAN:
- ami = &MMI_italian_uppercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_ITALIAN:
- ami = &MMI_italian_lowercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MMI_LOWERCASE_ITALIAN:
- ami = &MMI_italian_lowercase_multitaps[MMI_active_multitap];
- break;
- #endif /* defined(__MMI_MULTITAP_ITALIAN__) */
- #if defined(__MMI_MULTITAP_RUSSIAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_RUSSIAN:
- ami = &MMI_russian_uppercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_RUSSIAN:
- ami = &MMI_russian_lowercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MMI_LOWERCASE_RUSSIAN:
- ami = &MMI_russian_lowercase_multitaps[MMI_active_multitap];
- break;
- #endif /* defined(__MMI_MULTITAP_RUSSIAN__) */
- #if defined(__MMI_MULTITAP_BULGARIAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_BULGARIAN:
- ami = &MMI_bulgarian_uppercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_BULGARIAN:
- ami = &MMI_bulgarian_lowercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MMI_LOWERCASE_BULGARIAN:
- ami = &MMI_bulgarian_lowercase_multitaps[MMI_active_multitap];
- break;
- #endif /* defined(__MMI_MULTITAP_BULGARIAN__) */
- #if defined(__MMI_MULTITAP_TURKISH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_TURKISH:
- ami = &MMI_turkish_uppercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_TURKISH:
- ami = &MMI_turkish_lowercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MMI_LOWERCASE_TURKISH:
- ami = &MMI_turkish_lowercase_multitaps[MMI_active_multitap];
- break;
- #endif /* defined(__MMI_MULTITAP_TURKISH__) */
- #if defined(__MMI_MULTITAP_PORTUGUESE__)
- case INPUT_MODE_MULTITAP_UPPERCASE_PORTUGUESE:
- ami = &MMI_portuguese_uppercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_PORTUGUESE:
- ami = &MMI_portuguese_lowercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MMI_LOWERCASE_PORTUGUESE:
- ami = &MMI_portuguese_lowercase_multitaps[MMI_active_multitap];
- break;
- #endif /* defined(__MMI_MULTITAP_PORTUGUESE__) */
- /* PMT RAKESH START 20061006 */
- #if defined(__MMI_MULTITAP_HINDI__)
- /* PMT RAKESH END 20061006 */
- case INPUT_MODE_MULTITAP_HINDI:
- ami = &MMI_hindi_multitaps[MMI_active_multitap];
- break;
- #endif /* defined(__MMI_MULTITAP_HINDI__) */
- /* PMT RAKESH START 20061006 */
- #if defined(__MMI_MULTITAP_MARATHI__)
- case INPUT_MODE_MULTITAP_MARATHI:
- ami = &MMI_marathi_multitaps[MMI_active_multitap];
- break;
- #endif /* defined(__MMI_MULTITAP_MARATHI__) */
- /* PMT RAKESH END 20061006 */
- #if defined(__MMI_MULTITAP_INDONESIAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_INDONESIAN:
- ami = &MMI_indonesian_uppercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_INDONESIAN:
- ami = &MMI_indonesian_lowercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MMI_LOWERCASE_INDONESIAN:
- ami = &MMI_indonesian_lowercase_multitaps[MMI_active_multitap];
- break;
- #endif /* defined(__MMI_MULTITAP_INDONESIAN__) */
- #if defined(__MMI_MULTITAP_CZECH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_CZECH:
- ami = &MMI_czech_uppercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_CZECH:
- ami = &MMI_czech_lowercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MMI_LOWERCASE_CZECH:
- ami = &MMI_czech_lowercase_multitaps[MMI_active_multitap];
- break;
- #endif /* defined(__MMI_MULTITAP_CZECH__) */
- #if defined(__MMI_MULTITAP_MALAY__)
- case INPUT_MODE_MULTITAP_UPPERCASE_MALAY:
- ami = &MMI_malay_uppercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_MALAY:
- ami = &MMI_malay_lowercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MMI_LOWERCASE_MALAY:
- ami = &MMI_malay_lowercase_multitaps[MMI_active_multitap];
- break;
- #endif /* defined(__MMI_MULTITAP_MALAY__) */
- #if defined(__MMI_MULTITAP_VIETNAMESE__)
- case INPUT_MODE_MULTITAP_UPPERCASE_VIETNAMESE:
- ami = &MMI_vietnamese_uppercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_VIETNAMESE:
- ami = &MMI_vietnamese_lowercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MMI_LOWERCASE_VIETNAMESE:
- ami = &MMI_vietnamese_lowercase_multitaps[MMI_active_multitap];
- break;
- #endif /* defined(__MMI_MULTITAP_VIETNAMESE__) */
- #if defined(__MMI_MULTITAP_FINNISH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_FINNISH:
- ami = &MMI_finnish_uppercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_FINNISH:
- ami = &MMI_finnish_lowercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MMI_LOWERCASE_FINNISH:
- ami = &MMI_finnish_lowercase_multitaps[MMI_active_multitap];
- break;
- #endif /* defined(__MMI_MULTITAP_FINNISH__) */
- #if defined(__MMI_MULTITAP_HUNGARIAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_HUNGARIAN:
- ami = &MMI_hungarian_uppercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_HUNGARIAN:
- ami = &MMI_hungarian_lowercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MMI_LOWERCASE_HUNGARIAN:
- ami = &MMI_hungarian_lowercase_multitaps[MMI_active_multitap];
- break;
- #endif /* defined(__MMI_MULTITAP_HUNGARIAN__) */
- #if defined(__MMI_MULTITAP_HEBREW__)
- case INPUT_MODE_MULTITAP_HEBREW:
- ami = &MMI_hebrew_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MMI_MULTITAP_HEBREW:
- ami = &MMI_hebrew_multitaps[MMI_active_multitap];
- break;
- #endif /* defined(__MMI_MULTITAP_HEBREW__) */
- #if defined(__MMI_MULTITAP_SLOVAK__)
- case INPUT_MODE_MULTITAP_UPPERCASE_SLOVAK:
- ami = &MMI_slovak_uppercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_SLOVAK:
- ami = &MMI_slovak_lowercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MMI_LOWERCASE_SLOVAK:
- ami = &MMI_slovak_lowercase_multitaps[MMI_active_multitap];
- break;
- #endif /* defined(__MMI_MULTITAP_SLOVAK__) */
- #if defined(__MMI_MULTITAP_DUTCH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_DUTCH:
- ami = &MMI_dutch_uppercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_DUTCH:
- ami = &MMI_dutch_lowercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MMI_LOWERCASE_DUTCH:
- ami = &MMI_dutch_lowercase_multitaps[MMI_active_multitap];
- break;
- #endif /* defined(__MMI_MULTITAP_DUTCH__) */
- #if defined(__MMI_MULTITAP_ARABIC__)
- case INPUT_MODE_MULTITAP_ARABIC:
- ami = &MMI_arabic_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MMI_MULTITAP_ARABIC:
- ami = &MMI_arabic_multitaps[MMI_active_multitap];
- break;
- #endif /* defined(__MMI_MULTITAP_ARABIC__) */
- /* PMT START PERSIAN */
- #if defined(__MMI_MULTITAP_PERSIAN__)
- case INPUT_MODE_MULTITAP_PERSIAN:
- ami = &MMI_persian_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MMI_MULTITAP_PERSIAN:
- ami = &MMI_persian_multitaps[MMI_active_multitap];
- break;
- #endif /* defined(__MMI_MULTITAP_PERSIAN__) */
- /* PMT END PERSIAN */
- #if defined(__MMI_MULTITAP_NORWEGIAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_NORWEGIAN:
- ami = &MMI_norwegian_uppercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_NORWEGIAN:
- ami = &MMI_norwegian_lowercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MMI_LOWERCASE_NORWEGIAN:
- ami = &MMI_norwegian_lowercase_multitaps[MMI_active_multitap];
- break;
- #endif /* defined(__MMI_MULTITAP_NORWEGIAN__) */
- //Norwegian end
- #if defined(__MMI_MULTITAP_SWEDISH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_SWEDISH:
- ami = &MMI_swedish_uppercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_SWEDISH:
- ami = &MMI_swedish_lowercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MMI_LOWERCASE_SWEDISH:
- ami = &MMI_swedish_lowercase_multitaps[MMI_active_multitap];
- break;
- #endif /* defined(__MMI_MULTITAP_SWEDISH__) */
- #if defined(__MMI_MULTITAP_CROATIAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_CROATIAN:
- ami = &MMI_croatian_uppercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_CROATIAN:
- ami = &MMI_croatian_lowercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MMI_LOWERCASE_CROATIAN:
- ami = &MMI_croatian_lowercase_multitaps[MMI_active_multitap];
- break;
- #endif /* defined(__MMI_MULTITAP_CROATIAN__) */
- #if defined(__MMI_MULTITAP_ROMANIAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_ROMANIAN:
- ami = &MMI_romanian_uppercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_ROMANIAN:
- ami = &MMI_romanian_lowercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MMI_LOWERCASE_ROMANIAN:
- ami = &MMI_romanian_lowercase_multitaps[MMI_active_multitap];
- break;
- #endif /* defined(__MMI_MULTITAP_ROMANIAN__) */
- #if defined(__MMI_MULTITAP_SLOVENIAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_SLOVENIAN:
- ami = &MMI_slovenian_uppercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_SLOVENIAN:
- ami = &MMI_slovenian_lowercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MMI_LOWERCASE_SLOVENIAN:
- ami = &MMI_slovenian_lowercase_multitaps[MMI_active_multitap];
- break;
- #endif /* defined(__MMI_MULTITAP_SLOVENIAN__) */
- #if defined(__MMI_MULTITAP_GREEK__)
- case INPUT_MODE_MULTITAP_UPPERCASE_GREEK:
- ami = &MMI_greek_uppercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_GREEK:
- ami = &MMI_greek_lowercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MMI_LOWERCASE_GREEK:
- ami = &MMI_greek_lowercase_multitaps[MMI_active_multitap];
- break;
- #endif /* defined(__MMI_MULTITAP_GREEK__) */
- case INPUT_MODE_MMI_MULTITAP_BPMF:
- ami = &MMI_bpmf_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MMI_MULTITAP_PINYIN:
- ami = &MMI_lowercase_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MMI_LOWERCASE_ABC:
- ami = &MMI_lowercase_multitaps[MMI_active_multitap];
- break;
- #if defined(__MMI_WCSS_INPUT_FORMAT_SUPPORT__)
- case INPUT_MODE_MULTITAP_UPPERCASE_ABC_NO_NUMERIC:
- ami = &MMI_uppercase_numberless_multitaps[MMI_active_multitap];
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_ABC_NO_NUMERIC:
- ami = &MMI_lowercase_numberless_multitaps[MMI_active_multitap];
- break;
- #endif /* defined(__MMI_WCSS_INPUT_FORMAT_SUPPORT__) */
- }
- /* W06.09 Touch Screen With Keypad V1 */
- #if defined(__MMI_FULL_SCREEN_EDITOR__) || defined(__MMI_TOUCH_SCREEN__)
- #else /* defined(__MMI_FULL_SCREEN_EDITOR__) || defined(__MMI_TOUCH_SCREEN__) */
- hide_multitap();
- #endif /* defined(__MMI_FULL_SCREEN_EDITOR__) || defined(__MMI_TOUCH_SCREEN__) */
- /* PMT dara added for Multitap thai */
- #if defined(__MMI_MULTITAP_THAI__)
- if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_THAI ||
- MMI_current_multitap_mode == INPUT_MODE_MMI_MULTITAP_THAI)
- {
- gui_multitap_input_complete(ami);
- MMI_active_multitap = -1;
- }
- else
- {
- #endif /* defined(__MMI_MULTITAP_THAI__) */
- MMI_active_multitap = -1;
- gui_multitap_input_complete(ami);
- #if defined(__MMI_MULTITAP_THAI__)
- }
- #endif
- }
- /*****************************************************************************
- * FUNCTION
- * disable_active_multitap_no_draw
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void disable_active_multitap_no_draw(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- multitap_input *ami;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (MMI_active_multitap < 0)
- {
- return;
- }
- // for timing issue
- if (MMI_timer_multitap != MMI_active_multitap)
- {
- return;
- }
- if (MMI_current_multitap_mode == 0)
- {
- ami = &MMI_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == 1)
- {
- ami = &MMI_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_MULTITAP_BPMF)
- {
- ami = &MMI_bpmf_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_MULTITAP_PINYIN)
- {
- ami = &MMI_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_ABC)
- {
- ami = &MMI_lowercase_multitaps[MMI_active_multitap];
- }
- #if defined(__MMI_WCSS_INPUT_FORMAT_SUPPORT__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_ABC_NO_NUMERIC)
- {
- ami = &MMI_uppercase_numberless_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_ABC_NO_NUMERIC)
- {
- ami = &MMI_lowercase_numberless_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_WCSS_INPUT_FORMAT_SUPPORT__) */
- /* PMT dara added for Multitap thai */
- #if defined (__MMI_MULTITAP_THAI__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_THAI)
- {
- ami = &MMI_thai_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_MULTITAP_THAI)
- {
- ami = &MMI_thai_multitaps[MMI_active_multitap];
- }
- #endif /* defined (__MMI_MULTITAP_THAI__) */
- /* MTK Terry for Spanish French German Italian Russian Turkish Portuguese Indonesian Malay Vietnamese */
- #if defined(__MMI_MULTITAP_SPANISH__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_SPANISH)
- {
- ami = &MMI_spanish_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_SPANISH)
- {
- ami = &MMI_spanish_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_SPANISH)
- {
- ami = &MMI_spanish_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_SPANISH__) */
- #if defined(__MMI_MULTITAP_DANISH__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_DANISH)
- {
- ami = &MMI_danish_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_DANISH)
- {
- ami = &MMI_danish_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_DANISH)
- {
- ami = &MMI_danish_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_DANISH__) */
- #if defined(__MMI_MULTITAP_POLISH__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_POLISH)
- {
- ami = &MMI_polish_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_POLISH)
- {
- ami = &MMI_polish_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_POLISH)
- {
- ami = &MMI_polish_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_POLISH__) */
- #if defined(__MMI_MULTITAP_FRENCH__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_FRENCH)
- {
- ami = &MMI_french_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_FRENCH)
- {
- ami = &MMI_french_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_FRENCH)
- {
- ami = &MMI_french_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_FRENCH__) */
- #if defined(__MMI_MULTITAP_GERMAN__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_GERMAN)
- {
- ami = &MMI_german_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_GERMAN)
- {
- ami = &MMI_german_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_GERMAN)
- {
- ami = &MMI_german_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_GERMAN__) */
- #if defined(__MMI_MULTITAP_ITALIAN__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_ITALIAN)
- {
- ami = &MMI_italian_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_ITALIAN)
- {
- ami = &MMI_italian_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_ITALIAN)
- {
- ami = &MMI_italian_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_ITALIAN__) */
- #if defined(__MMI_MULTITAP_RUSSIAN__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_RUSSIAN)
- {
- ami = &MMI_russian_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_RUSSIAN)
- {
- ami = &MMI_russian_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_RUSSIAN)
- {
- ami = &MMI_russian_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_RUSSIAN__) */
- #if defined(__MMI_MULTITAP_BULGARIAN__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_BULGARIAN)
- {
- ami = &MMI_bulgarian_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_BULGARIAN)
- {
- ami = &MMI_bulgarian_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_BULGARIAN)
- {
- ami = &MMI_bulgarian_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_BULGARIAN__) */
- #if defined(__MMI_MULTITAP_TURKISH__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_TURKISH)
- {
- ami = &MMI_turkish_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_TURKISH)
- {
- ami = &MMI_turkish_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_TURKISH)
- {
- ami = &MMI_turkish_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_TURKISH__) */
- #if defined(__MMI_MULTITAP_PORTUGUESE__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_PORTUGUESE)
- {
- ami = &MMI_portuguese_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_PORTUGUESE)
- {
- ami = &MMI_portuguese_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_PORTUGUESE)
- {
- ami = &MMI_portuguese_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_PORTUGUESE__) */
- /* PMT RAKESH START 20061006 */
- #if defined(__MMI_MULTITAP_HINDI__)
- /* PMT RAKESH END 20061006 */
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_HINDI)
- {
- ami = &MMI_hindi_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_HINDI__) */
- /* PMT RAKESH START 20061006 */
- #if defined(__MMI_MULTITAP_MARATHI__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_MARATHI)
- {
- ami = &MMI_marathi_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_MARATHI__) */
- /* PMT RAKESH END 20061006 */
- #if defined(__MMI_MULTITAP_INDONESIAN__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_INDONESIAN)
- {
- ami = &MMI_indonesian_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_INDONESIAN)
- {
- ami = &MMI_indonesian_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_INDONESIAN)
- {
- ami = &MMI_indonesian_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_INDONESIAN__) */
- #if defined(__MMI_MULTITAP_CZECH__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_CZECH)
- {
- ami = &MMI_czech_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_CZECH)
- {
- ami = &MMI_czech_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_CZECH)
- {
- ami = &MMI_czech_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_CZECH__) */
- #if defined(__MMI_MULTITAP_MALAY__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_MALAY)
- {
- ami = &MMI_malay_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_MALAY)
- {
- ami = &MMI_malay_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_MALAY)
- {
- ami = &MMI_malay_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_MALAY__) */
- #if defined(__MMI_MULTITAP_VIETNAMESE__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_VIETNAMESE)
- {
- ami = &MMI_vietnamese_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_VIETNAMESE)
- {
- ami = &MMI_vietnamese_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_VIETNAMESE)
- {
- ami = &MMI_vietnamese_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_VIETNAMESE__) */
- #if defined(__MMI_MULTITAP_FINNISH__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_FINNISH)
- {
- ami = &MMI_finnish_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_FINNISH)
- {
- ami = &MMI_finnish_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_FINNISH)
- {
- ami = &MMI_finnish_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_FINNISH__) */
- #if defined(__MMI_MULTITAP_HUNGARIAN__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_HUNGARIAN)
- {
- ami = &MMI_hungarian_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_HUNGARIAN)
- {
- ami = &MMI_hungarian_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_HUNGARIAN)
- {
- ami = &MMI_hungarian_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_HUNGARIAN__) */
- #if defined(__MMI_MULTITAP_SWEDISH__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_SWEDISH)
- {
- ami = &MMI_swedish_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_SWEDISH)
- {
- ami = &MMI_swedish_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_SWEDISH)
- {
- ami = &MMI_swedish_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_SWEDISH__) */
- #if defined(__MMI_MULTITAP_HEBREW__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_HEBREW)
- {
- ami = &MMI_hebrew_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_MULTITAP_HEBREW)
- {
- ami = &MMI_hebrew_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_HEBREW__) */
- #if defined(__MMI_MULTITAP_SLOVAK__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_SLOVAK)
- {
- ami = &MMI_slovak_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_SLOVAK)
- {
- ami = &MMI_slovak_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_SLOVAK)
- {
- ami = &MMI_slovak_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_SLOVAK__) */
- #if defined(__MMI_MULTITAP_DUTCH__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_DUTCH)
- {
- ami = &MMI_dutch_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_DUTCH)
- {
- ami = &MMI_dutch_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_DUTCH)
- {
- ami = &MMI_dutch_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_DUTCH__) */
- /* Norwegian start */
- #if defined(__MMI_MULTITAP_NORWEGIAN__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_NORWEGIAN)
- {
- ami = &MMI_norwegian_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_NORWEGIAN)
- {
- ami = &MMI_norwegian_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_NORWEGIAN)
- {
- ami = &MMI_norwegian_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_NORWEGIAN__) */
- /* Norwegian end */
- #if defined(__MMI_MULTITAP_ARABIC__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_ARABIC)
- {
- ami = &MMI_arabic_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_MULTITAP_ARABIC)
- {
- ami = &MMI_arabic_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_ARABIC__) */
- /* PMT START PERSIAN */
- #if defined(__MMI_MULTITAP_PERSIAN__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_PERSIAN)
- {
- ami = &MMI_persian_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_MULTITAP_PERSIAN)
- {
- ami = &MMI_persian_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_PERSIAN__) */
- //PMT END PERSIAN
- #if defined(__MMI_MULTITAP_CROATIAN__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_CROATIAN)
- {
- ami = &MMI_croatian_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_CROATIAN)
- {
- ami = &MMI_croatian_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_CROATIAN)
- {
- ami = &MMI_croatian_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_CROATIAN__) */
- #if defined(__MMI_MULTITAP_ROMANIAN__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_ROMANIAN)
- {
- ami = &MMI_romanian_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_ROMANIAN)
- {
- ami = &MMI_romanian_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_ROMANIAN)
- {
- ami = &MMI_romanian_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_ROMANIAN__) */
- #if defined(__MMI_MULTITAP_SLOVENIAN__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_SLOVENIAN)
- {
- ami = &MMI_slovenian_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_SLOVENIAN)
- {
- ami = &MMI_slovenian_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_SLOVENIAN)
- {
- ami = &MMI_slovenian_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_SLOVENIAN__) */
- #if defined(__MMI_MULTITAP_GREEK__)
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_UPPERCASE_GREEK)
- {
- ami = &MMI_greek_uppercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_LOWERCASE_GREEK)
- {
- ami = &MMI_greek_lowercase_multitaps[MMI_active_multitap];
- }
- else if (MMI_current_multitap_mode == INPUT_MODE_MMI_LOWERCASE_GREEK)
- {
- ami = &MMI_greek_lowercase_multitaps[MMI_active_multitap];
- }
- #endif /* defined(__MMI_MULTITAP_GREEK__) */
- else
- {
- return;
- }
- MMI_active_multitap = -1;
- gui_multitap_input_complete(ami);
- }
- /*****************************************************************************
- * FUNCTION
- * change_multitap_state
- * DESCRIPTION
- * Changes the state of a specified multitap object
- *
- * Internal function
- * PARAMETERS
- * i [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void change_multitap_state(S32 i)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- multitap_input *ami = NULL;
- U8 flag = 0;
- S32 old_active_mi = MMI_active_multitap;
- /* PMT dara added for Multitap thai */
- #if defined(__MMI_MULTITAP_THAI__)
- U8 max_multitaps;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (MMI_current_multitap_mode == INPUT_MODE_MULTITAP_THAI ||
- MMI_current_multitap_mode == INPUT_MODE_MMI_MULTITAP_THAI)
- {
- max_multitaps = MAX_MULTITAPS_THAI;
- }
- else
- {
- max_multitaps = MAX_MULTITAPS;
- }
- #else /* defined(__MMI_MULTITAP_THAI__) */
- U8 max_multitaps = MAX_MULTITAPS;
- #endif /* defined(__MMI_MULTITAP_THAI__) */
- /* PMT dara added for Multitap thai */
- #ifdef __MMI_MULTITAP_THAI__
- if (i == KEY_STAR)
- {
- i = 10;
- }
- if (i == KEY_POUND)
- {
- i = 11;
- }
- #endif /* __MMI_MULTITAP_THAI__ */
- /* PMT dara added for Multitap thai */
- if ((i < 0) || (i > (max_multitaps - 1)))
- {
- return;
- }
- #if(UI_DOUBLE_BUFFER_SUPPORT)
- /* gui_lock_double_buffer(); */
- #endif
- if (MMI_active_multitap != i)
- {
- flag = 1;
- }
- //START VIJAY 20050725....commented as to show multitap till character is selected
- //hide_multitap();
- //END VIJAY PMT 20050725
- MMI_active_multitap = i;
- if (flag && (old_active_mi >= 0) && (old_active_mi < max_multitaps))
- {
- //MTK Elvis to add some APIs for Qsearch
- //if(MMI_current_multitap_mode==0) ami=&MMI_uppercase_multitaps[old_active_mi];
- //else if(MMI_current_multitap_mode==1) ami=&MMI_lowercase_multitaps[old_active_mi];
- switch (MMI_current_multitap_mode)
- {
- case INPUT_MODE_MULTITAP_UPPERCASE_ABC:
- ami = &MMI_uppercase_multitaps[old_active_mi];
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_ABC:
- ami = &MMI_lowercase_multitaps[old_active_mi];
- break;
- /* PMT dara added for Multitap thai */
- #if defined (__MMI_MULTITAP_THAI__)
- case INPUT_MODE_MULTITAP_THAI:
- ami = &MMI_thai_multitaps[old_active_mi];
- break;
- case INPUT_MODE_MMI_MULTITAP_THAI:
- ami = &MMI_thai_multitaps[old_active_mi];
- break;
- #endif /* defined (__MMI_MULTITAP_THAI__) */
- /* MTK Terry for Spanish French German Italian Russian Turkish Portuguese Indonesian Malay Vietnamese */
- #if defined(__MMI_MULTITAP_SPANISH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_SPANISH:
- ami = &MMI_spanish_uppercase_multitaps[old_active_mi];
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_SPANISH:
- ami = &MMI_spanish_lowercase_multitaps[old_active_mi];
- break;
- case INPUT_MODE_MMI_LOWERCASE_SPANISH:
- ami = &MMI_spanish_lowercase_multitaps[old_active_mi];
- break;
- #endif /* defined(__MMI_MULTITAP_SPANISH__) */
- #if defined(__MMI_MULTITAP_DANISH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_DANISH:
- ami = &MMI_danish_uppercase_multitaps[old_active_mi];
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_DANISH:
- ami = &MMI_danish_lowercase_multitaps[old_active_mi];
- break;
- case INPUT_MODE_MMI_LOWERCASE_DANISH:
- ami = &MMI_danish_lowercase_multitaps[old_active_mi];
- break;
- #endif /* defined(__MMI_MULTITAP_DANISH__) */
- #if defined(__MMI_MULTITAP_POLISH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_POLISH:
- ami = &MMI_polish_uppercase_multitaps[old_active_mi];
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_POLISH:
- ami = &MMI_polish_lowercase_multitaps[old_active_mi];
- break;
- case INPUT_MODE_MMI_LOWERCASE_POLISH:
- ami = &MMI_polish_lowercase_multitaps[old_active_mi];
- break;
- #endif /* defined(__MMI_MULTITAP_POLISH__) */
- #if defined(__MMI_MULTITAP_FRENCH__)
- case INPUT_MODE_MULTITAP_UPPERCASE_FRENCH:
- ami = &MMI_french_uppercase_multitaps[old_active_mi];
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_FRENCH:
- ami = &MMI_french_lowercase_multitaps[old_active_mi];
- break;
- case INPUT_MODE_MMI_LOWERCASE_FRENCH:
- ami = &MMI_french_lowercase_multitaps[old_active_mi];
- break;
- #endif /* defined(__MMI_MULTITAP_FRENCH__) */
- #if defined(__MMI_MULTITAP_GERMAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_GERMAN:
- ami = &MMI_german_uppercase_multitaps[old_active_mi];
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_GERMAN:
- ami = &MMI_german_lowercase_multitaps[old_active_mi];
- break;
- case INPUT_MODE_MMI_LOWERCASE_GERMAN:
- ami = &MMI_german_lowercase_multitaps[old_active_mi];
- break;
- #endif /* defined(__MMI_MULTITAP_GERMAN__) */
- #if defined(__MMI_MULTITAP_ITALIAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_ITALIAN:
- ami = &MMI_italian_uppercase_multitaps[old_active_mi];
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_ITALIAN:
- ami = &MMI_italian_lowercase_multitaps[old_active_mi];
- break;
- case INPUT_MODE_MMI_LOWERCASE_ITALIAN:
- ami = &MMI_italian_lowercase_multitaps[old_active_mi];
- break;
- #endif /* defined(__MMI_MULTITAP_ITALIAN__) */
- #if defined(__MMI_MULTITAP_RUSSIAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_RUSSIAN:
- ami = &MMI_russian_uppercase_multitaps[old_active_mi];
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_RUSSIAN:
- ami = &MMI_russian_lowercase_multitaps[old_active_mi];
- break;
- case INPUT_MODE_MMI_LOWERCASE_RUSSIAN:
- ami = &MMI_russian_lowercase_multitaps[old_active_mi];
- break;
- #endif /* defined(__MMI_MULTITAP_RUSSIAN__) */
- #if defined(__MMI_MULTITAP_BULGARIAN__)
- case INPUT_MODE_MULTITAP_UPPERCASE_BULGARIAN:
- ami = &MMI_bulgarian_uppercase_multitaps[old_active_mi];
- break;
- case INPUT_MODE_MULTITAP_LOWERCASE_BULGARIAN:
- ami = &MMI_bulgarian_lowercase_multitaps[old_active_mi];
- break;