Skip to content

Commit

Permalink
Use padmapper input names for item descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenCWills authored and AJenbo committed Feb 18, 2025
1 parent 8f2154f commit 2d27363
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/items.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1804,8 +1804,8 @@ void printItemMiscGamepad(const Item &item, bool isOil, bool isCastOnTarget)
printItemMiscGenericGamepad(item, isOil, isCastOnTarget);
return;
}
const std::string_view activateButton = ToString(GamepadType, ControllerButton_BUTTON_Y);
const std::string_view castButton = ToString(GamepadType, ControllerButton_BUTTON_X);
const std::string_view activateButton = GetOptions().Padmapper.InputNameForAction("SecondaryAction");
const std::string_view castButton = GetOptions().Padmapper.InputNameForAction("SpellAction");

if (item._iMiscId == IMISC_MAPOFDOOM) {
AddInfoBoxString(fmt::format(fmt::runtime(_("{} to view")), activateButton));
Expand Down

0 comments on commit 2d27363

Please sign in to comment.