Input: Fix incorrect string conversion of motor binds

This commit is contained in:
TheLastRar 2025-03-07 19:33:15 +00:00 committed by lightningterror
parent d332aee542
commit 9fb8dacadb
2 changed files with 4 additions and 4 deletions

View File

@ -966,9 +966,9 @@ TinyString SDLInputSource::ConvertKeyToString(InputBindingKey key, bool display,
else if (key.source_subtype == InputSubclass::ControllerMotor)
{
if (display)
ret.format("SDL-{} {} Motor", static_cast<u32>(key.source_index), key.data ? "Large" : "Small");
ret.format("SDL-{} {} Motor", static_cast<u32>(key.source_index), key.data ? "Small" : "Large");
else
ret.format("SDL-{}/{}Motor", static_cast<u32>(key.source_index), key.data ? "Large" : "Small");
ret.format("SDL-{}/{}Motor", static_cast<u32>(key.source_index), key.data ? "Small" : "Large");
}
else if (key.source_subtype == InputSubclass::ControllerHaptic)
{

View File

@ -374,9 +374,9 @@ TinyString XInputSource::ConvertKeyToString(InputBindingKey key, bool display, b
else if (key.source_subtype == InputSubclass::ControllerMotor)
{
if (display)
ret.format("XInput-{} {} Motor", static_cast<u32>(key.source_index), key.data ? "Large" : "Small");
ret.format("XInput-{} {} Motor", static_cast<u32>(key.source_index), key.data ? "Small" : "Large");
else
ret.format("XInput-{}/{}Motor", static_cast<u32>(key.source_index), key.data ? "Large" : "Small");
ret.format("XInput-{}/{}Motor", static_cast<u32>(key.source_index), key.data ? "Small" : "Large");
}
}