summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-05-13 10:57:05 -0600
committerJared Adams <jaxad0127@gmail.com>2009-05-13 10:57:05 -0600
commit7cddbca0dcfff234b6c6f124cb91840279c36118 (patch)
treecce25bc9e93c0bb9bd5b41185d1b32e776f4c2d3 /src/game.cpp
parentd401dcb26695bddec8c39edc8151dbe309378519 (diff)
downloadmana-client-7cddbca0dcfff234b6c6f124cb91840279c36118.tar.gz
mana-client-7cddbca0dcfff234b6c6f124cb91840279c36118.tar.bz2
mana-client-7cddbca0dcfff234b6c6f124cb91840279c36118.tar.xz
mana-client-7cddbca0dcfff234b6c6f124cb91840279c36118.zip
Allow more control of NpcDialog using the keyboard
The move up and move down keys will now let you navigate the list mode and change the value on the integer mode.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp
index c07d6520..d60a4225 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -582,6 +582,11 @@ void Game::handleInput()
if (chatWindow->requestChatFocus())
used = true;
}
+ if (npcDialog->isVisible())
+ if (keyboard.isKeyActive(keyboard.KEY_MOVE_UP))
+ npcDialog->move(1);
+ else if (keyboard.isKeyActive(keyboard.KEY_MOVE_DOWN))
+ npcDialog->move(-1);
}