about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2010-09-22 00:40:35 +0200
committeroy <Tom_Adams@web.de>2010-09-22 00:40:35 +0200
commit27e6fa3ad7a72f96f75608a6c95680ccd916e27b (patch)
tree3e120f43c79c3dd372bf06b36ecc992660371bfc /src
parent55434a2a571304f7b6bc8e3933cad610a2b1ef6a (diff)
downloadzcatch-27e6fa3ad7a72f96f75608a6c95680ccd916e27b.tar.gz
zcatch-27e6fa3ad7a72f96f75608a6c95680ccd916e27b.zip
fixed problems with key handling on osx. Closes #45
Diffstat (limited to 'src')
-rw-r--r--src/engine/client/input.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/engine/client/input.cpp b/src/engine/client/input.cpp
index 195b78aa..bf3e703c 100644
--- a/src/engine/client/input.cpp
+++ b/src/engine/client/input.cpp
@@ -150,7 +150,8 @@ void CInput::Update()
 			{
 				// handle keys
 				case SDL_KEYDOWN:
-					AddEvent(Event.key.keysym.unicode, 0, 0); // ignore_convention
+					if(Event.key.keysym.unicode < 255)	// ignore_convention
+						AddEvent(Event.key.keysym.unicode, 0, 0); // ignore_convention
                     Key = Event.key.keysym.sym;  // ignore_convention
 					break;
 				case SDL_KEYUP: