summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Howard2005-08-04 19:54:56 +0000
committerSimon Howard2005-08-04 19:54:56 +0000
commit186d0dd6efb317c4e983af04f939704ebd8e510a (patch)
treeba79caacde8089b7634fda290c94b93f5dee3519 /src
parent3aeb98b92575dccb70df15c393c95a72891ce205 (diff)
downloadchocolate-doom-186d0dd6efb317c4e983af04f939704ebd8e510a.tar.gz
chocolate-doom-186d0dd6efb317c4e983af04f939704ebd8e510a.tar.bz2
chocolate-doom-186d0dd6efb317c4e983af04f939704ebd8e510a.zip
Use keysym value rather than unicode value (fixes problems with shift
key) Subversion-branch: /trunk/chocolate-doom Subversion-revision: 38
Diffstat (limited to 'src')
-rw-r--r--src/i_video.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/i_video.c b/src/i_video.c
index 87ccb61b..971a541e 100644
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: i_video.c 37 2005-08-04 18:42:15Z fraggle $
+// $Id: i_video.c 38 2005-08-04 19:54:56Z fraggle $
//
// Copyright(C) 1993-1996 Id Software, Inc.
// Copyright(C) 2005 Simon Howard
@@ -22,6 +22,10 @@
// 02111-1307, USA.
//
// $Log$
+// Revision 1.12 2005/08/04 19:54:56 fraggle
+// Use keysym value rather than unicode value (fixes problems with shift
+// key)
+//
// Revision 1.11 2005/08/04 18:42:15 fraggle
// Silence compiler warnings
//
@@ -65,7 +69,7 @@
//-----------------------------------------------------------------------------
static const char
-rcsid[] = "$Id: i_video.c 37 2005-08-04 18:42:15Z fraggle $";
+rcsid[] = "$Id: i_video.c 38 2005-08-04 19:54:56Z fraggle $";
#include <ctype.h>
#include <SDL.h>
@@ -256,7 +260,7 @@ int xlatekey(SDL_keysym *sym)
case SDLK_KP_DIVIDE: return KEYP_DIVIDE;
default:
- return tolower(sym->unicode);
+ return tolower(sym->sym);
}
}
@@ -641,7 +645,6 @@ void I_InitGraphics(void)
else
screens[0] = (unsigned char *) malloc (SCREENWIDTH * SCREENHEIGHT);
- SDL_EnableUNICODE(1);
SDL_ShowCursor(0);
SDL_WM_GrabInput(SDL_GRAB_ON);