============== Scroll deals with scrolling text because we don't have key repeat ============== */
| 737 | ============== |
| 738 | */ |
| 739 | void 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 | ============== |
nothing calls this directly
no test coverage detected