summaryrefslogtreecommitdiff
path: root/src/gui/viewport.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-04-10 23:14:47 +0300
committerAndrei Karas <akaras@inbox.ru>2012-04-10 23:14:47 +0300
commita3475e987b0e642b2b9aa9c6cbf74762c6c77d23 (patch)
treed4d1e3b4640b98ae59ffb982114e708825114234 /src/gui/viewport.cpp
parent3973b3175a1efdb0d47e93b93af6ae5f50cb62f8 (diff)
downloadplus-a3475e987b0e642b2b9aa9c6cbf74762c6c77d23.tar.gz
plus-a3475e987b0e642b2b9aa9c6cbf74762c6c77d23.tar.bz2
plus-a3475e987b0e642b2b9aa9c6cbf74762c6c77d23.tar.xz
plus-a3475e987b0e642b2b9aa9c6cbf74762c6c77d23.zip
Add two default keys to input layout.
Add action type to default keys. Remove hardcoded joystick actions.
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r--src/gui/viewport.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp
index 59b7377f4..3b58e03a9 100644
--- a/src/gui/viewport.cpp
+++ b/src/gui/viewport.cpp
@@ -511,7 +511,8 @@ void Viewport::mousePressed(gcn::MouseEvent &event)
if (player_node != mHoverBeing)
{
player_node->attack(mHoverBeing,
- !inputManager.isActionActive(Input::KEY_TARGET));
+ !inputManager.isActionActive(
+ Input::KEY_STOP_ATTACK));
return;
}
}