Skip to content

Commit 9fb8dac

Browse files
TheLastRarlightningterror
authored andcommitted
Input: Fix incorrect string conversion of motor binds
1 parent d332aee commit 9fb8dac

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pcsx2/Input/SDLInputSource.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -966,9 +966,9 @@ TinyString SDLInputSource::ConvertKeyToString(InputBindingKey key, bool display,
966966
else if (key.source_subtype == InputSubclass::ControllerMotor)
967967
{
968968
if (display)
969-
ret.format("SDL-{} {} Motor", static_cast<u32>(key.source_index), key.data ? "Large" : "Small");
969+
ret.format("SDL-{} {} Motor", static_cast<u32>(key.source_index), key.data ? "Small" : "Large");
970970
else
971-
ret.format("SDL-{}/{}Motor", static_cast<u32>(key.source_index), key.data ? "Large" : "Small");
971+
ret.format("SDL-{}/{}Motor", static_cast<u32>(key.source_index), key.data ? "Small" : "Large");
972972
}
973973
else if (key.source_subtype == InputSubclass::ControllerHaptic)
974974
{

pcsx2/Input/XInputSource.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,9 +374,9 @@ TinyString XInputSource::ConvertKeyToString(InputBindingKey key, bool display, b
374374
else if (key.source_subtype == InputSubclass::ControllerMotor)
375375
{
376376
if (display)
377-
ret.format("XInput-{} {} Motor", static_cast<u32>(key.source_index), key.data ? "Large" : "Small");
377+
ret.format("XInput-{} {} Motor", static_cast<u32>(key.source_index), key.data ? "Small" : "Large");
378378
else
379-
ret.format("XInput-{}/{}Motor", static_cast<u32>(key.source_index), key.data ? "Large" : "Small");
379+
ret.format("XInput-{}/{}Motor", static_cast<u32>(key.source_index), key.data ? "Small" : "Large");
380380
}
381381
}
382382

0 commit comments

Comments
 (0)