diff options
| author | oy <Tom_Adams@web.de> | 2010-09-22 00:40:35 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2010-09-22 00:40:35 +0200 |
| commit | 27e6fa3ad7a72f96f75608a6c95680ccd916e27b (patch) | |
| tree | 3e120f43c79c3dd372bf06b36ecc992660371bfc /src | |
| parent | 55434a2a571304f7b6bc8e3933cad610a2b1ef6a (diff) | |
| download | zcatch-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.cpp | 3 |
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: |