From 3fbef9d2788184c491c120d00e6d5bccecc4310c Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Tue, 23 May 2006 22:51:09 +0000 Subject: Make TXT_GetChar return the unicode value of the key pressed. For text boxes. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 519 --- textscreen/txt_main.c | 4 ++-- 1 file 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; } } -- cgit v1.2.3