comparison src/video/ataricommon/SDL_gemdosevents.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
185 else 185 else
186 keysym->sym = keymap[scancode]; 186 keysym->sym = keymap[scancode];
187 187
188 keysym->mod = KMOD_NONE; 188 keysym->mod = KMOD_NONE;
189 keysym->unicode = 0; 189 keysym->unicode = 0;
190 if (pressed && (asciicode!=0)) { 190 if (SDL_TranslateUNICODE && pressed) {
191 keysym->unicode = SDL_AtariToUnicode(asciicode); 191 keysym->unicode = SDL_AtariToUnicodeTable[asciicode];
192 } 192 }
193 193
194 return(keysym); 194 return(keysym);
195 } 195 }
196 196