1
0
Fork 0
forked from fte/fteqw

Apparently it didn't compile.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3262 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2009-07-12 15:01:18 +00:00
parent b5ac90d523
commit 942af209a7

View file

@ -418,8 +418,8 @@ int checkDepth(int d)
{ {
if ([event type] == NSKeyDown) if ([event type] == NSKeyDown)
{ {
int code = keyconv[[event keyCode]] int code = keyconv[[event keyCode]];
Key_Event(code, code, TRUE); Key_Event(code, code>=128?0:code, TRUE);
//printf("%d\n",[event keyCode]); //printf("%d\n",[event keyCode]);
return; return;
} }
@ -427,7 +427,7 @@ int checkDepth(int d)
if ([event type] == NSKeyUp) if ([event type] == NSKeyUp)
{ {
int code = keyconv[[event keyCode]]; int code = keyconv[[event keyCode]];
Key_Event(code, code, FALSE); Key_Event(code, 0, FALSE);
return; return;
} }