diff 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
line wrap: on
line diff
--- a/src/video/gem/SDL_gemevents.c	Mon Jan 02 12:48:58 2006 +0000
+++ b/src/video/gem/SDL_gemevents.c	Mon Jan 02 19:49:21 2006 +0000
@@ -83,8 +83,8 @@
 
 	keysym->mod = KMOD_NONE;
 	keysym->unicode = 0;
-	if (pressed && (asciicode!=0)) {
-		keysym->unicode = SDL_AtariToUnicode(asciicode);
+	if (SDL_TranslateUNICODE && pressed) {
+		keysym->unicode = SDL_AtariToUnicodeTable[asciicode];
 	}
 
 	return(keysym);