mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-31 05:00:35 +00:00
Create a new imt_menu imt.
It seems to work nicely as F10 no longer tries to quit while the menu is displayed.
This commit is contained in:
parent
b18305351e
commit
e3b8157469
2 changed files with 5 additions and 1 deletions
|
@ -414,6 +414,7 @@ typedef enum {
|
|||
} knum_t;
|
||||
|
||||
typedef enum {
|
||||
IMT_MENU,
|
||||
IMT_CONSOLE,
|
||||
IMT_MOD,
|
||||
IMT_DEMO,
|
||||
|
|
|
@ -78,6 +78,7 @@ typedef struct {
|
|||
} imtname_t;
|
||||
|
||||
imtname_t imtnames[] = {
|
||||
{"IMT_MENU", IMT_MENU},
|
||||
{"IMT_CONSOLE", IMT_CONSOLE},
|
||||
{"IMT_MOD", IMT_MOD},
|
||||
{"IMT_DEMO", IMT_DEMO},
|
||||
|
@ -1034,9 +1035,11 @@ Key_SetKeyDest(keydest_t kd)
|
|||
break;
|
||||
case key_console:
|
||||
case key_message:
|
||||
case key_menu:
|
||||
key_target = IMT_CONSOLE;
|
||||
break;
|
||||
case key_menu:
|
||||
key_target = IMT_MENU;
|
||||
break;
|
||||
}
|
||||
if (key_dest_callback)
|
||||
key_dest_callback ();
|
||||
|
|
Loading…
Reference in a new issue