diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-28 18:14:58 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-28 18:14:58 +0300 |
commit | a204d2b11e6a4b620877ab6c5b80a818eaa7d476 (patch) | |
tree | ee2112216168624403769a1fdeab120dafab4100 /src/input | |
parent | d82cd00f86cf5f902a47ef19fd24c7745e4104d4 (diff) | |
download | mv-a204d2b11e6a4b620877ab6c5b80a818eaa7d476.tar.gz mv-a204d2b11e6a4b620877ab6c5b80a818eaa7d476.tar.bz2 mv-a204d2b11e6a4b620877ab6c5b80a818eaa7d476.tar.xz mv-a204d2b11e6a4b620877ab6c5b80a818eaa7d476.zip |
Add fake commands to change pet direction.
Diffstat (limited to 'src/input')
-rw-r--r-- | src/input/inputaction.h | 4 | ||||
-rw-r--r-- | src/input/inputactionmap.h | 36 |
2 files changed, 40 insertions, 0 deletions
diff --git a/src/input/inputaction.h b/src/input/inputaction.h index 67ac8f446..67bf95161 100644 --- a/src/input/inputaction.h +++ b/src/input/inputaction.h @@ -520,6 +520,10 @@ namespace InputAction PET_MOVE_DOWN, PET_MOVE_LEFT, PET_MOVE_RIGHT, + PET_DIRECT_UP, + PET_DIRECT_DOWN, + PET_DIRECT_LEFT, + PET_DIRECT_RIGHT, TOTAL }; } // namespace InputAction diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h index 4dc84bb71..c5d9d9d76 100644 --- a/src/input/inputactionmap.h +++ b/src/input/inputactionmap.h @@ -4424,6 +4424,42 @@ static const InputActionData inputActionData[InputAction::TOTAL] = { InputCondition::INGAME, "petmoveright|moverightpet", false}, + {"keyPetDirectUp", + InputType::UNKNOWN, InputAction::NO_VALUE, + InputType::UNKNOWN, InputAction::NO_VALUE, + Input::GRP_DEFAULT, + &Actions::petDirectUp, + InputAction::NO_VALUE, 50, + InputCondition::INGAME, + "petdirectup|directuppet", + false}, + {"keyPetDirectDown", + InputType::UNKNOWN, InputAction::NO_VALUE, + InputType::UNKNOWN, InputAction::NO_VALUE, + Input::GRP_DEFAULT, + &Actions::petDirectDown, + InputAction::NO_VALUE, 50, + InputCondition::INGAME, + "petdirectdown|directdownpet", + false}, + {"keyPetDirectLeft", + InputType::UNKNOWN, InputAction::NO_VALUE, + InputType::UNKNOWN, InputAction::NO_VALUE, + Input::GRP_DEFAULT, + &Actions::petDirectLeft, + InputAction::NO_VALUE, 50, + InputCondition::INGAME, + "petdirectleft|directleftpet", + false}, + {"keyPetDirectRight", + InputType::UNKNOWN, InputAction::NO_VALUE, + InputType::UNKNOWN, InputAction::NO_VALUE, + Input::GRP_DEFAULT, + &Actions::petDirectRight, + InputAction::NO_VALUE, 50, + InputCondition::INGAME, + "petdirectright|directrightpet", + false}, }; #endif // INPUT_INPUTACTIONMAP_H |