MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / Scroll

Method Scroll

neo/framework/Console.cpp:739–755  ·  view source on GitHub ↗

============== Scroll deals with scrolling text because we don't have key repeat ============== */

Source from the content-addressed store, hash-verified

737==============
738*/
739void idConsoleLocal::Scroll( ) {
740 if (lastKeyEvent == -1 || (lastKeyEvent+200) > eventLoop->Milliseconds()) {
741 return;
742 }
743 // console scrolling
744 if ( idKeyInput::IsDown( K_PGUP ) ) {
745 PageUp();
746 nextKeyEvent = CONSOLE_REPEAT;
747 return;
748 }
749
750 if ( idKeyInput::IsDown( K_PGDN ) ) {
751 PageDown();
752 nextKeyEvent = CONSOLE_REPEAT;
753 return;
754 }
755}
756
757/*
758==============

Callers

nothing calls this directly

Calls 1

MillisecondsMethod · 0.45

Tested by

no test coverage detected