fixed problems with key handling on osx. Closes #45

This commit is contained in:
oy 2010-09-22 00:40:35 +02:00
parent 55434a2a57
commit 27e6fa3ad7

View file

@ -150,7 +150,8 @@ void CInput::Update()
{ {
// handle keys // handle keys
case SDL_KEYDOWN: 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 Key = Event.key.keysym.sym; // ignore_convention
break; break;
case SDL_KEYUP: case SDL_KEYUP: