finally, the client console is merged

This commit is contained in:
Bill Currie 2002-01-16 21:53:42 +00:00
parent 778af4276e
commit c86c5a78bf
19 changed files with 300 additions and 1675 deletions

View file

@ -45,7 +45,7 @@ static const char rcsid[] =
int con_linewidth; // characters across screen
static plugin_t *con_module;
plugin_t *con_module;
static con_buffer_t *(*const buffer) (size_t, int) = Con_CreateBuffer;
static void (*const complete)(inputline_t *) = Con_BasicCompleteCommandLine;
@ -119,3 +119,31 @@ Con_ProcessInput (void)
}
}
}
void
Con_KeyEvent (knum_t key, short unicode, qboolean down)
{
if (con_module)
con_module->functions->console->pC_KeyEvent (key, unicode, down);
}
void
Con_SetOrMask (int mask)
{
if (con_module)
con_module->data->console->ormask = mask;
}
void
Con_DrawConsole (int lines)
{
if (con_module)
con_module->functions->console->pC_DrawConsole (lines);
}
void
Con_CheckResize (void)
{
if (con_module)
con_module->functions->console->pC_CheckResize ();
}