Misc: Make controller bindings translatable

This commit is contained in:
Stenzek
2023-08-20 00:15:53 +10:00
parent e57ad0b6aa
commit c88a558ae0
7 changed files with 97 additions and 85 deletions

View File

@ -182,8 +182,10 @@ static const Controller::ControllerBindingInfo s_binding_info[] = {
name, display_name, static_cast<u32>(button), InputBindingInfo::Type::Button, genb \
}
BUTTON("Left", "Left Button", PlayStationMouse::Button::Left, GenericInputBinding::Cross),
BUTTON("Right", "Right Button", PlayStationMouse::Button::Right, GenericInputBinding::Circle),
// clang-format off
BUTTON("Left", TRANSLATE_NOOP("PlayStationMouse", "Left Button"), PlayStationMouse::Button::Left, GenericInputBinding::Cross),
BUTTON("Right", TRANSLATE_NOOP("PlayStationMouse", "Right Button"), PlayStationMouse::Button::Right, GenericInputBinding::Circle),
// clang-format on
#undef BUTTON
};