summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/yuzu/configuration/configure_hotkeys.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/yuzu/configuration/configure_hotkeys.cpp b/src/yuzu/configuration/configure_hotkeys.cpp
index be10e0a31..53e629a5e 100644
--- a/src/yuzu/configuration/configure_hotkeys.cpp
+++ b/src/yuzu/configuration/configure_hotkeys.cpp
@@ -178,52 +178,52 @@ void ConfigureHotkeys::SetPollingResult(Core::HID::NpadButton button, const bool
178QString ConfigureHotkeys::GetButtonName(Core::HID::NpadButton button) const { 178QString ConfigureHotkeys::GetButtonName(Core::HID::NpadButton button) const {
179 Core::HID::NpadButtonState state{button}; 179 Core::HID::NpadButtonState state{button};
180 if (state.a) { 180 if (state.a) {
181 return tr("A"); 181 return QStringLiteral("A");
182 } 182 }
183 if (state.b) { 183 if (state.b) {
184 return tr("B"); 184 return QStringLiteral("B");
185 } 185 }
186 if (state.x) { 186 if (state.x) {
187 return tr("X"); 187 return QStringLiteral("X");
188 } 188 }
189 if (state.y) { 189 if (state.y) {
190 return tr("Y"); 190 return QStringLiteral("Y");
191 } 191 }
192 if (state.l || state.right_sl || state.left_sl) { 192 if (state.l || state.right_sl || state.left_sl) {
193 return tr("L"); 193 return QStringLiteral("L");
194 } 194 }
195 if (state.r || state.right_sr || state.left_sr) { 195 if (state.r || state.right_sr || state.left_sr) {
196 return tr("R"); 196 return QStringLiteral("R");
197 } 197 }
198 if (state.zl) { 198 if (state.zl) {
199 return tr("ZL"); 199 return QStringLiteral("ZL");
200 } 200 }
201 if (state.zr) { 201 if (state.zr) {
202 return tr("ZR"); 202 return QStringLiteral("ZR");
203 } 203 }
204 if (state.left) { 204 if (state.left) {
205 return tr("Dpad_Left"); 205 return QStringLiteral("Dpad_Left");
206 } 206 }
207 if (state.right) { 207 if (state.right) {
208 return tr("Dpad_Right"); 208 return QStringLiteral("Dpad_Right");
209 } 209 }
210 if (state.up) { 210 if (state.up) {
211 return tr("Dpad_Up"); 211 return QStringLiteral("Dpad_Up");
212 } 212 }
213 if (state.down) { 213 if (state.down) {
214 return tr("Dpad_Down"); 214 return QStringLiteral("Dpad_Down");
215 } 215 }
216 if (state.stick_l) { 216 if (state.stick_l) {
217 return tr("Left_Stick"); 217 return QStringLiteral("Left_Stick");
218 } 218 }
219 if (state.stick_r) { 219 if (state.stick_r) {
220 return tr("Right_Stick"); 220 return QStringLiteral("Right_Stick");
221 } 221 }
222 if (state.minus) { 222 if (state.minus) {
223 return tr("Minus"); 223 return QStringLiteral("Minus");
224 } 224 }
225 if (state.plus) { 225 if (state.plus) {
226 return tr("Plus"); 226 return QStringLiteral("Plus");
227 } 227 }
228 return tr("Invalid"); 228 return tr("Invalid");
229} 229}