Mercurial > sdl-ios-xcode
comparison src/video/gem/SDL_gemevents.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 |
---|---|
81 else | 81 else |
82 keysym->sym = keymap[scancode]; | 82 keysym->sym = keymap[scancode]; |
83 | 83 |
84 keysym->mod = KMOD_NONE; | 84 keysym->mod = KMOD_NONE; |
85 keysym->unicode = 0; | 85 keysym->unicode = 0; |
86 if (pressed && (asciicode!=0)) { | 86 if (SDL_TranslateUNICODE && pressed) { |
87 keysym->unicode = SDL_AtariToUnicode(asciicode); | 87 keysym->unicode = SDL_AtariToUnicodeTable[asciicode]; |
88 } | 88 } |
89 | 89 |
90 return(keysym); | 90 return(keysym); |
91 } | 91 } |
92 | 92 |