diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-04-15 20:09:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-04-15 20:09:02 +0300 |
commit | b2d5269eca7be4c76379ac2cbeef7a40ad0695bb (patch) | |
tree | 8fbb7cae1d8771cd08f6c1310d4c26ee9fb3932d /src/actionmanager.cpp | |
parent | f2e40ee7c81927d128e9d6c8e65e617e3b6d0b0b (diff) | |
download | mv-b2d5269eca7be4c76379ac2cbeef7a40ad0695bb.tar.gz mv-b2d5269eca7be4c76379ac2cbeef7a40ad0695bb.tar.bz2 mv-b2d5269eca7be4c76379ac2cbeef7a40ad0695bb.tar.xz mv-b2d5269eca7be4c76379ac2cbeef7a40ad0695bb.zip |
Add outfits shortcuts to input settings.
Diffstat (limited to 'src/actionmanager.cpp')
-rw-r--r-- | src/actionmanager.cpp | 12 |
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); |