foxygit / doom Log in
commit 3fbef9d2788184c491c120d00e6d5bccecc4310c
Author:     Simon Howard <fraggle@gmail.com>
AuthorDate: Tue May 23 22:51:09 2006 +0000
Commit:     Simon Howard <fraggle@gmail.com>
CommitDate: Tue May 23 22:51:09 2006 +0000

    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;
     }
 }