summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorDennis Friis <peavey@placid.dk>2008-05-08 00:39:29 +0000
committerDennis Friis <peavey@placid.dk>2008-05-08 00:39:29 +0000
commit41906acb990895831e3b2c39102f41c9b580ae10 (patch)
tree736c61438719471e75ea3da20d389742d1a2d9da /src/game.cpp
parent4b07864a32c409c390f2561f9c75962f3b96444f (diff)
downloadmana-41906acb990895831e3b2c39102f41c9b580ae10.tar.gz
mana-41906acb990895831e3b2c39102f41c9b580ae10.tar.bz2
mana-41906acb990895831e3b2c39102f41c9b580ae10.tar.xz
mana-41906acb990895831e3b2c39102f41c9b580ae10.zip
Allow page up and page down to scroll the chat window, based on patch by fate.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 8096ada4..b12b114f 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -532,6 +532,22 @@ void Game::handleInput()
}
switch (event.key.keysym.sym)
{
+ case SDLK_PAGEUP:
+ if (chatWindow->isVisible())
+ {
+ chatWindow->scroll(-DEFAULT_CHAT_WINDOW_SCROLL);
+ used = true;
+ }
+ break;
+
+ case SDLK_PAGEDOWN:
+ if (chatWindow->isVisible())
+ {
+ chatWindow->scroll(DEFAULT_CHAT_WINDOW_SCROLL);
+ used = true;
+ }
+ break;
+
case SDLK_F1:
// In-game Help
if (helpWindow->isVisible())