diff options
author | Simon Howard | 2006-05-23 22:51:09 +0000 |
---|---|---|
committer | Simon Howard | 2006-05-23 22:51:09 +0000 |
commit | 3fbef9d2788184c491c120d00e6d5bccecc4310c (patch) | |
tree | c41359e67e389439f098e7a041118be9aa82aff5 | |
parent | 240a1cfcca8f53a114a4302e93af793be21809d0 (diff) | |
download | chocolate-doom-3fbef9d2788184c491c120d00e6d5bccecc4310c.tar.gz chocolate-doom-3fbef9d2788184c491c120d00e6d5bccecc4310c.tar.bz2 chocolate-doom-3fbef9d2788184c491c120d00e6d5bccecc4310c.zip |
Make TXT_GetChar return the unicode value of the key pressed. For text
boxes.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 519
-rw-r--r-- | textscreen/txt_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/textscreen/txt_main.c b/textscreen/txt_main.c index dca2e767..92c9df2d 100644 --- a/textscreen/txt_main.c +++ b/textscreen/txt_main.c @@ -1,7 +1,7 @@ // Emacs style mode select -*- C++ -*- //----------------------------------------------------------------------------- // -// $Id: txt_main.c 513 2006-05-23 00:04:27Z fraggle $ +// $Id: txt_main.c 519 2006-05-23 22:51:09Z fraggle $ // // Copyright(C) 1993-1996 Id Software, Inc. // Copyright(C) 2005 Simon Howard @@ -261,7 +261,7 @@ static int TranslateKey(SDL_keysym *sym) case SDLK_KP_MINUS: return KEYP_MINUS; case SDLK_KP_DIVIDE: return KEYP_DIVIDE; - default: return tolower(sym->sym); + default: return sym->unicode; } } |