mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
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:
parent
436aad096f
commit
90b99f9b79
1 changed files with 8 additions and 2 deletions
|
@ -719,7 +719,10 @@ void Key_Console (int key)
|
||||||
|
|
||||||
if (key == K_PGUP || key==K_MWHEELUP)
|
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)
|
if (con_current->display < upperconbound)
|
||||||
con_current->display = upperconbound;
|
con_current->display = upperconbound;
|
||||||
return;
|
return;
|
||||||
|
@ -727,7 +730,10 @@ void Key_Console (int key)
|
||||||
|
|
||||||
if (key == K_PGDN || key==K_MWHEELDOWN)
|
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)
|
if (con_current->display < upperconbound)
|
||||||
con_current->display = upperconbound;
|
con_current->display = upperconbound;
|
||||||
if (con_current->display > con_current->current)
|
if (con_current->display > con_current->current)
|
||||||
|
|
Loading…
Reference in a new issue