mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 06:58:20 +00:00
fixed problems with key handling on osx. Closes #45
This commit is contained in:
parent
55434a2a57
commit
27e6fa3ad7
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue