/*
- $RCSfile$
-
Copyright (C) 1996-1997 Id Software, Inc.
This program is free software; you can redistribute it and/or
Free Software Foundation, Inc.
59 Temple Place - Suite 330
Boston, MA 02111-1307, USA
-
*/
-static const char rcsid[] =
- "$Id$";
#include "quakedef.h"
-#include <ctype.h>
/*
key_linepos = 1;
// force an update, because the command may take some time
if (cls.state == ca_disconnected)
- {
CL_UpdateScreen ();
- CL_UpdateScreen ();
- }
return;
}
if (key == K_PGUP || key == K_KP_PGUP || key == K_MWHEELUP)
{
- con_backscroll += ((int) scr_conlines >> 4);
+ con_backscroll += ((int) vid.conheight >> 5);
if (con_backscroll > con_totallines - (vid.conheight>>3) - 1)
con_backscroll = con_totallines - (vid.conheight>>3) - 1;
return;
if (key == K_PGDN || key == K_KP_PGDN || key == K_MWHEELDOWN)
{
- con_backscroll -= ((int) scr_conlines >> 4);
+ con_backscroll -= ((int) vid.conheight >> 5);
if (con_backscroll < 0)
con_backscroll = 0;
return;
the K_* names are matched up.
===================
*/
-static int
+int
Key_StringToKeynum (const char *str)
{
const keyname_t *kn;