mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
move a Key function out of console and into keys.
replace a Con_Print call with Con_Printf ("%s", ...) (I want to make Con_Print private)
This commit is contained in:
parent
4cf5648fcc
commit
7ca4383790
6 changed files with 16 additions and 17 deletions
|
@ -186,6 +186,8 @@ void Key_WriteBindings (VFile *f);
|
|||
void Key_SetBinding (int keynum, char *binding);
|
||||
void Key_ClearStates (void);
|
||||
|
||||
void Key_ClearTyping (void);
|
||||
|
||||
float Key_KeyState (kbutton_t *key);
|
||||
char *Key_KeynumToString (int keynum);
|
||||
|
||||
|
|
|
@ -82,14 +82,6 @@ extern int key_linepos;
|
|||
qboolean con_initialized;
|
||||
|
||||
|
||||
void
|
||||
Key_ClearTyping (void)
|
||||
{
|
||||
key_lines[edit_line][1] = 0; // clear any typing
|
||||
key_linepos = 1;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
Con_ToggleConsole_f (void)
|
||||
{
|
||||
|
|
|
@ -867,3 +867,9 @@ Key_ClearStates (void)
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
Key_ClearTyping (void)
|
||||
{
|
||||
key_lines[edit_line][1] = 0; // clear any typing
|
||||
key_linepos = 1;
|
||||
}
|
||||
|
|
|
@ -947,7 +947,7 @@ CL_ConnectionlessPacket (void)
|
|||
Con_Printf("status response\n");
|
||||
return;
|
||||
}
|
||||
Con_Print (s);
|
||||
Con_Printf ("%s", s);
|
||||
return;
|
||||
}
|
||||
// ping from somewhere
|
||||
|
|
|
@ -82,14 +82,6 @@ extern int key_linepos;
|
|||
qboolean con_initialized;
|
||||
|
||||
|
||||
void
|
||||
Key_ClearTyping (void)
|
||||
{
|
||||
key_lines[edit_line][1] = 0; // clear any typing
|
||||
key_linepos = 1;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
Con_ToggleConsole_f (void)
|
||||
{
|
||||
|
|
|
@ -867,3 +867,10 @@ Key_ClearStates (void)
|
|||
key_repeats[i] = false;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
Key_ClearTyping (void)
|
||||
{
|
||||
key_lines[edit_line][1] = 0; // clear any typing
|
||||
key_linepos = 1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue