Skip to content

Commit

Permalink
Rename M_KeyBinding to M_WaitingForKeyBinding
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-drexler committed Aug 31, 2024
1 parent 01bca6c commit c9ca0e6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Quake/keys.c
Original file line number Diff line number Diff line change
Expand Up @@ -1314,7 +1314,7 @@ void Key_EventWithKeycode (int key, qboolean down, int keycode)
}

// if not a consolekey, send to the interpreter no matter what mode is
if ((key_dest == key_menu && menubound[key] && !M_KeyBinding ()) ||
if ((key_dest == key_menu && menubound[key] && !M_WaitingForKeyBinding ()) ||
(key_dest == key_console && !consolekeys[key]) ||
(key_dest == key_game && (!con_forcedup || !consolekeys[key])))
{
Expand Down
2 changes: 1 addition & 1 deletion Quake/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -7125,7 +7125,7 @@ textmode_t M_TextEntry (void)
}


qboolean M_KeyBinding (void)
qboolean M_WaitingForKeyBinding (void)
{
return key_dest == key_menu && m_state == m_keys && bind_grab;
}
Expand Down
2 changes: 1 addition & 1 deletion Quake/menu.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ void M_Keydown (int key);
void M_Charinput (int key);
void M_Mousemove (int x, int y);
enum textmode_t M_TextEntry (void);
qboolean M_KeyBinding (void);
qboolean M_WaitingForKeyBinding (void);
void M_ToggleMenu_f (void);

void M_RefreshMods (void);
Expand Down
2 changes: 1 addition & 1 deletion Quake/sys_sdl_win.c
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ LRESULT CALLBACK KeyFilter (int nCode, WPARAM wParam, LPARAM lParam)
qboolean intercept =
force_intercept ||
key == HK_PRINTSCREEN ||
(key_dest == key_game || M_KeyBinding ())
(key_dest == key_game || M_WaitingForKeyBinding ())
;

if (intercept)
Expand Down

0 comments on commit c9ca0e6

Please sign in to comment.