From 90b99f9b79e5ff779dead2fb2211519b0bd1cb13 Mon Sep 17 00:00:00 2001 From: Molgrum Date: Tue, 24 Jul 2007 23:26:40 +0000 Subject: [PATCH] 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 --- engine/client/keys.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/engine/client/keys.c b/engine/client/keys.c index a0743cb6f..de051e73c 100644 --- a/engine/client/keys.c +++ b/engine/client/keys.c @@ -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)