fix: gamepads have the same name #27

Merged
Ghost merged 1 commit from frosch/Ryubing:fix/multiple-gamepad-have-same-name into master 2026-05-10 23:20:00 +00:00
Contributor

When connecting multiple controllers of the same model, the first device's name ends with (0), the second with (1), the third with (1), the fourth with (1), and so on. To ensure these names are truly unique, GetUniqueGamepadName is now called recursively.

Before:
image

After:
image

When connecting multiple controllers of the same model, the first device's name ends with (0), the second with (1), the third with (1), the fourth with (1), and so on. To ensure these names are truly unique, GetUniqueGamepadName is now called recursively. Before: ![image](/attachments/c27ab407-0945-48d8-92a8-6f1fe7fb2727) After: ![image](/attachments/da7b1427-958c-45d5-8351-6f977d971e1e)
Ghost force-pushed fix/multiple-gamepad-have-same-name from d53195f81a
Some checks failed
Pull Request Triage / triage (pull_request_target) Successful in 34s
Build PR / linux-x64 (Release) (pull_request) Failing after 1m26s
Build PR / win-x64 (Release) (pull_request) Failing after 1m26s
Build PR / linux-arm64 (Release) (pull_request) Failing after 1m43s
Build PR / macOS Universal (Release) (pull_request) Failing after 2m54s
to 784145e5d3
All checks were successful
Build PR / linux-arm64 (Release) (pull_request) Successful in 6m1s
Build PR / win-x64 (Release) (pull_request) Successful in 5m18s
Build PR / macOS Universal (Release) (pull_request) Successful in 11m28s
Build PR / linux-x64 (Release) (pull_request) Successful in 19m36s
2026-05-02 01:34:17 +00:00
Compare
Ghost force-pushed fix/multiple-gamepad-have-same-name from 784145e5d3
All checks were successful
Build PR / linux-arm64 (Release) (pull_request) Successful in 6m1s
Build PR / win-x64 (Release) (pull_request) Successful in 5m18s
Build PR / macOS Universal (Release) (pull_request) Successful in 11m28s
Build PR / linux-x64 (Release) (pull_request) Successful in 19m36s
to 68966a1e4c
All checks were successful
Build PR / linux-arm64 (Release) (pull_request) Successful in 4m54s
Build PR / linux-x64 (Release) (pull_request) Successful in 9m26s
Build PR / win-x64 (Release) (pull_request) Successful in 8m32s
Build PR / macOS Universal (Release) (pull_request) Successful in 12m40s
2026-05-10 23:19:52 +00:00
Compare
Ghost merged commit 5511ff5686 into master 2026-05-10 23:20:00 +00:00
Ghost deleted branch fix/multiple-gamepad-have-same-name 2026-05-10 23:20:01 +00:00
Ghost referenced this pull request from a commit 2026-05-10 23:20:01 +00:00
Ghost added this to the 1.4.0 milestone 2026-06-27 17:10:48 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
projects/Ryubing!27
No description provided.