mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-29 15:12:19 +00:00
fix issue with the menu not eating keypresses
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5035 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
8c0ac181d2
commit
a7621b7bd8
1 changed files with 1 additions and 0 deletions
|
@ -2804,6 +2804,7 @@ qboolean MP_Keydown(int key, int unicode, unsigned int devid)
|
|||
G_FLOAT(OFS_PARM0) = MP_TranslateFTEtoQCCodes(key);
|
||||
G_FLOAT(OFS_PARM1) = unicode;
|
||||
PR_ExecuteProgram(menu_world.progs, mp_keydown_function);
|
||||
result = true; //doesn't have a return value, so if the menu is set up for key events, all events are considered eaten.
|
||||
}
|
||||
inmenuprogs--;
|
||||
return result;
|
||||
|
|
Loading…
Reference in a new issue