1
0
Fork 0
forked from suyu/suyu

Merge pull request #7792 from german77/translate

hotkeys: Don't translate hotkey buttons
This commit is contained in:
bunnei 2022-02-01 20:07:52 -07:00 committed by GitHub
commit 404a94a199
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -178,52 +178,52 @@ void ConfigureHotkeys::SetPollingResult(Core::HID::NpadButton button, const bool
QString ConfigureHotkeys::GetButtonName(Core::HID::NpadButton button) const { QString ConfigureHotkeys::GetButtonName(Core::HID::NpadButton button) const {
Core::HID::NpadButtonState state{button}; Core::HID::NpadButtonState state{button};
if (state.a) { if (state.a) {
return tr("A"); return QStringLiteral("A");
} }
if (state.b) { if (state.b) {
return tr("B"); return QStringLiteral("B");
} }
if (state.x) { if (state.x) {
return tr("X"); return QStringLiteral("X");
} }
if (state.y) { if (state.y) {
return tr("Y"); return QStringLiteral("Y");
} }
if (state.l || state.right_sl || state.left_sl) { if (state.l || state.right_sl || state.left_sl) {
return tr("L"); return QStringLiteral("L");
} }
if (state.r || state.right_sr || state.left_sr) { if (state.r || state.right_sr || state.left_sr) {
return tr("R"); return QStringLiteral("R");
} }
if (state.zl) { if (state.zl) {
return tr("ZL"); return QStringLiteral("ZL");
} }
if (state.zr) { if (state.zr) {
return tr("ZR"); return QStringLiteral("ZR");
} }
if (state.left) { if (state.left) {
return tr("Dpad_Left"); return QStringLiteral("Dpad_Left");
} }
if (state.right) { if (state.right) {
return tr("Dpad_Right"); return QStringLiteral("Dpad_Right");
} }
if (state.up) { if (state.up) {
return tr("Dpad_Up"); return QStringLiteral("Dpad_Up");
} }
if (state.down) { if (state.down) {
return tr("Dpad_Down"); return QStringLiteral("Dpad_Down");
} }
if (state.stick_l) { if (state.stick_l) {
return tr("Left_Stick"); return QStringLiteral("Left_Stick");
} }
if (state.stick_r) { if (state.stick_r) {
return tr("Right_Stick"); return QStringLiteral("Right_Stick");
} }
if (state.minus) { if (state.minus) {
return tr("Minus"); return QStringLiteral("Minus");
} }
if (state.plus) { if (state.plus) {
return tr("Plus"); return QStringLiteral("Plus");
} }
return tr("Invalid"); return tr("Invalid");
} }