Skip to content

Commit 26f10e8

Browse files
Merge pull request #741 from wheremyfoodat/Fix-multiple-pads
[Pads] Fix having multiple pads of the same type.
2 parents 652607b + 39326de commit 26f10e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/pad.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,8 @@ bool PCSX::Pads::Pad::configure() {
528528

529529
if (ImGui::BeginCombo(_("Gamepad"), preview)) {
530530
for (int i = 0; i < gamepadsNames.size(); i++) {
531-
if (ImGui::Selectable(gamepadsNames[i])) {
531+
const auto gamepadName = fmt::format("{}##{}", gamepadsNames[i], i);
532+
if (ImGui::Selectable(gamepadName.c_str())) {
532533
changed = true;
533534
id = i;
534535
}

0 commit comments

Comments
 (0)