comparison src/video/ataricommon/SDL_biosevents.c @ 1221:8ef3e7e92a91

Use a simple table for Unicode translation
author Patrice Mandin <patmandin@gmail.com>
date Mon, 02 Jan 2006 19:49:21 +0000
parents a55ac374271c
children a8068adf156b
comparison
equal deleted inserted replaced
1220:ca2f0da7b708 1221:8ef3e7e92a91
180 else 180 else
181 keysym->sym = keymap[scancode]; 181 keysym->sym = keymap[scancode];
182 182
183 keysym->mod = KMOD_NONE; 183 keysym->mod = KMOD_NONE;
184 keysym->unicode = 0; 184 keysym->unicode = 0;
185 if (pressed && (asciicode!=0)) { 185 if (SDL_TranslateUNICODE && pressed) {
186 keysym->unicode = SDL_AtariToUnicode(asciicode); 186 keysym->unicode = SDL_AtariToUnicodeTable[asciicode];
187 } 187 }
188 188
189 return(keysym); 189 return(keysym);
190 } 190 }
191 191