summaryrefslogtreecommitdiff
path: root/src/actionmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-04-15 20:09:02 +0300
committerAndrei Karas <akaras@inbox.ru>2012-04-15 20:09:02 +0300
commitb2d5269eca7be4c76379ac2cbeef7a40ad0695bb (patch)
tree8fbb7cae1d8771cd08f6c1310d4c26ee9fb3932d /src/actionmanager.cpp
parentf2e40ee7c81927d128e9d6c8e65e617e3b6d0b0b (diff)
downloadplus-b2d5269eca7be4c76379ac2cbeef7a40ad0695bb.tar.gz
plus-b2d5269eca7be4c76379ac2cbeef7a40ad0695bb.tar.bz2
plus-b2d5269eca7be4c76379ac2cbeef7a40ad0695bb.tar.xz
plus-b2d5269eca7be4c76379ac2cbeef7a40ad0695bb.zip
Add outfits shortcuts to input settings.
Diffstat (limited to 'src/actionmanager.cpp')
-rw-r--r--src/actionmanager.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/actionmanager.cpp b/src/actionmanager.cpp
index b2df9967b..ededaea52 100644
--- a/src/actionmanager.cpp
+++ b/src/actionmanager.cpp
@@ -155,9 +155,15 @@ impHandler(emote)
return true;
}
}
- else if (inputManager.isActionActive(Input::KEY_WEAR_OUTFIT))
+
+ return false;
+}
+
+impHandler(outfit)
+{
+ if (inputManager.isActionActive(Input::KEY_WEAR_OUTFIT))
{
- int num = event.action - Input::KEY_EMOTE_1;
+ int num = event.action - Input::KEY_OUTFIT_1;
if (outfitWindow && num >= 0)
{
outfitWindow->wearOutfit(num);
@@ -168,7 +174,7 @@ impHandler(emote)
}
else if (inputManager.isActionActive(Input::KEY_COPY_OUTFIT))
{
- int num = event.action - Input::KEY_EMOTE_1;
+ int num = event.action - Input::KEY_OUTFIT_1;
if (outfitWindow && num >= 0)
{
outfitWindow->copyOutfit(num);