Added key combo CTRL + PGDN/PGUP for scrolling one screen. Also works for CTRL + MWHEEL, good/bad?

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2550 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Molgrum 2007-07-24 23:26:40 +00:00
parent 436aad096f
commit 90b99f9b79

View file

@ -719,7 +719,10 @@ void Key_Console (int key)
if (key == K_PGUP || key==K_MWHEELUP)
{
con_current->display -= 2;
if (keydown[K_CTRL])
con_current->display -= ( ( con_current->vislines / 8 ) - 3 );
else
con_current->display -= 2;
if (con_current->display < upperconbound)
con_current->display = upperconbound;
return;
@ -727,7 +730,10 @@ void Key_Console (int key)
if (key == K_PGDN || key==K_MWHEELDOWN)
{
con_current->display += 2;
if (keydown[K_CTRL])
con_current->display += ( ( con_current->vislines / 8 ) - 3 );
else
con_current->display += 2;
if (con_current->display < upperconbound)
con_current->display = upperconbound;
if (con_current->display > con_current->current)