tel_keyboard.h

Go to the documentation of this file.
00001 
00013 #ifndef GITKR_TEL_KEYBOARD_H
00014 #define GITKR_TEL_KEYBOARD_H
00015 
00018 #define KEY_RAUTE '#'
00019 #define KEY_STAR '*'
00020 #define KEY_ZERO '0'
00021 #define KEY_ONE '1'
00022 #define KEY_TWO '2'
00023 #define KEY_THREE '3'
00024 #define KEY_FOUR '4'
00025 #define KEY_FIVE '5'
00026 #define KEY_SIX '6'
00027 #define KEY_SEVEN '7'
00028 #define KEY_EIGHT '8'
00029 #define KEY_NINE '9'
00030 #define KEY_A 'A'
00031 #define KEY_B 'B'
00032 #define KEY_C 'C'
00033 #define KEY_D 'D'
00034 
00037 #define KEY_TABLE_TELEPHONE 0
00038 #define KEY_TABLE_ARROW 1
00039 #define KEY_TABLE_NUMBER 2
00040 
00043 typedef struct AsciiInfo{
00044   int keyPos[16];
00045   int max_keyOffset[16];
00046 }AsciiInfo;
00047 
00048 #ifdef GITKR_TEL_KEYBOARD_C
00049 
00052 AsciiInfo asciiInfo = {{0, 13, 22, 30, 36, 41, 49, 58, 64, 72, 77, 88, 90, 91, 92, 93},
00053                       {13, 9, 8, 6, 5, 8, 9, 6, 8, 5, 11, 2, 1, 1, 1, 1}};
00054 
00057 int asciiTable[94] = {32, 49, 64, 35, 61, 60, 62, 40, 41, 38, 156, 36, 157,
00058                       97, 98, 99, 50, 133, 132, 131, 145, 135,
00059                       100, 101, 102, 51, 130, 138, 235, 232,
00060                       103, 104, 105, 52, 226, 141,
00061                       106, 107, 108, 53, 239,
00062                       109, 110, 111, 54, 164, 149, 148, 162/*bin ich mir nisch sischer*/,
00063                       112, 113, 114, 115, 55, 225, 227, 233, 228,
00064                       116, 117, 118, 56, 129, 151,
00065                       119, 120, 121, 122, 57, 234, 92/*ist eigendlich Ksi*/, 230/*ist eigendlich Psi*/,
00066                       42, 43, 45, 47, 37,
00067                       46, 48, 34, 39, 63, 33, 44, 58, 59, 173, 168,
00068                       10, 27/*Zeige String*/,
00069                       65,
00070                       66,
00071                       67,
00072                       68};
00073                       
00074 //char menueCntlTable[] = {27/*ESC*/,
00075 //      30/*hoch*/,
00076 //      0,
00077 //                      29/*links*/,
00078 //                        7/*Beep*/,
00079 //                        28/*rechts*/,
00080 //                        0,
00081 //                        31/*unten*/,
00082 //                        10/*Enter*/,
00083 //                        27/*ESC*/,
00084 //                        0,
00085 //                        10/*Enter*/,
00086 //                        0,
00087 //                        0,
00088 //                        0,
00089 //                        0};
00092 int menueCntlTable[] = {Key_Home,
00093       Key_Up,
00094       Key_PageUp,
00095                         Key_Left,
00096                         Key_F2,
00097                         Key_Right,
00098                         Key_End,
00099                         Key_Down,
00100                         Key_PageDown,
00101                         Key_Escape,
00102                         Key_Backspace,
00103                         Key_Enter,
00104                         0,
00105                         0,
00106                         0,
00107                         0};
00108 
00111 int numberTable[] = {49,/*"1"*/
00112                      50,/*"2"*/
00113                      51,/*"3"*/
00114                      52,/*"4"*/
00115                      53,/*"5"*/
00116                      54,/*"6"*/
00117                      55,/*"7"*/
00118                      56,/*"8"*/
00119                      57,/*"9"*/
00120                      42,/*"*"*/
00121                      48,/*"0"*/
00122                      61,/*"="*/
00123                      43,/*"+"*/
00124                      45,/*"-"*/
00125                      47,/*"/"*/
00126                      Key_Escape};/*Rückwärtsschritt*/
00127                         
00128 int key_of_char(int keynumber);
00129 char get_ascii_of_key(int key, int key_offset);
00130 int navigation(int key, int table);
00131 #else //GITKR_TEL_KEYBOARD_C
00132 extern int key_of_char(int keynumber);
00133 extern char get_ascii_of_key(int key, int key_offset);
00134 extern int navigation(int key, int table);
00135 #endif //GITKR_TEL_KEYBOARD_C
00136 
00137 #endif /* GITKR_TEL_KEYBOARD_H */

Generated on Thu Oct 28 10:59:17 2004 for gitk by doxygen 1.3.6