From a204d2b11e6a4b620877ab6c5b80a818eaa7d476 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 28 Dec 2014 18:14:58 +0300 Subject: Add fake commands to change pet direction. --- src/input/inputaction.h | 4 ++++ src/input/inputactionmap.h | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) (limited to 'src/input') 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 -- cgit v1.2.3-70-g09d2