[PR #3169] [MERGED] Multiple controllers: Select active controller and set default controller #3277

Closed
opened 2026-02-27 22:03:06 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/3169
Author: @rainmakerv3
Created: 6/29/2025
Status: Merged
Merged: 7/30/2025
Merged by: @georgemoralis

Base: mainHead: controller-select


📝 Commits (8)

  • 46890eb initial commit - not cleanup yet, not usable with imGUI
  • 1c4829b Ugly solution to working with ImGUI
  • a0bccca Populate the default controller labels
  • da65b8d Add remove default button
  • 7db7dd1 missing tr calls
  • 052e04d edit imgui flag after updating
  • 9e11889 Refactor
  • 7525fbd Update sirit

📊 Changes

10 files changed (+510 additions, -250 deletions)

View changed files

📝 src/common/config.cpp (+11 -0)
📝 src/common/config.h (+2 -0)
📝 src/imgui/renderer/imgui_impl_sdl3.cpp (+24 -11)
📝 src/input/controller.cpp (+47 -0)
📝 src/input/controller.h (+11 -0)
📝 src/qt_gui/control_settings.cpp (+102 -19)
📝 src/qt_gui/control_settings.h (+4 -1)
📝 src/qt_gui/control_settings.ui (+281 -212)
📝 src/sdl_window.cpp (+27 -5)
📝 src/sdl_window.h (+1 -2)

📄 Description

Currently shadps4 just selects the first detected gamepad to use, this PR allows controller selection in the GUI.

Unfortunately though, I don't know if I can work on this PR after this, as I may have to be inactive for a while again due to my work responsibilities picking up again starting tomorrow.

Assuming this needs further work (very likely) and also since the code is done kinda quickly and quite inelegant (even compared to my other stuff lol), I am very much ok if anyone else will want to take this over. Just leaving it here in case it proves useful.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/shadps4-emu/shadPS4/pull/3169 **Author:** [@rainmakerv3](https://github.com/rainmakerv3) **Created:** 6/29/2025 **Status:** ✅ Merged **Merged:** 7/30/2025 **Merged by:** [@georgemoralis](https://github.com/georgemoralis) **Base:** `main` ← **Head:** `controller-select` --- ### 📝 Commits (8) - [`46890eb`](https://github.com/shadps4-emu/shadPS4/commit/46890eb6bec7ee99b04741f94aa13eaee6638c12) initial commit - not cleanup yet, not usable with imGUI - [`1c4829b`](https://github.com/shadps4-emu/shadPS4/commit/1c4829b11fa84ca4ca5e4055f8e2792029ba1e7d) Ugly solution to working with ImGUI - [`a0bccca`](https://github.com/shadps4-emu/shadPS4/commit/a0bcccaae4f82ddf9f11c685436efb7716fcb53b) Populate the default controller labels - [`da65b8d`](https://github.com/shadps4-emu/shadPS4/commit/da65b8de176e3ec1db88eb3b127f43ad4926fb1f) Add remove default button - [`7db7dd1`](https://github.com/shadps4-emu/shadPS4/commit/7db7dd1311adab3fcfc76d77bc2dec5174cde3fb) missing tr calls - [`052e04d`](https://github.com/shadps4-emu/shadPS4/commit/052e04deb9f19ba9e7749fac418e462282c0a142) edit imgui flag after updating - [`9e11889`](https://github.com/shadps4-emu/shadPS4/commit/9e11889896e8f1364dad892b81a40017ffeaaacc) Refactor - [`7525fbd`](https://github.com/shadps4-emu/shadPS4/commit/7525fbd0b1f25e05061f2390946ed6b5a9abe095) Update sirit ### 📊 Changes **10 files changed** (+510 additions, -250 deletions) <details> <summary>View changed files</summary> 📝 `src/common/config.cpp` (+11 -0) 📝 `src/common/config.h` (+2 -0) 📝 `src/imgui/renderer/imgui_impl_sdl3.cpp` (+24 -11) 📝 `src/input/controller.cpp` (+47 -0) 📝 `src/input/controller.h` (+11 -0) 📝 `src/qt_gui/control_settings.cpp` (+102 -19) 📝 `src/qt_gui/control_settings.h` (+4 -1) 📝 `src/qt_gui/control_settings.ui` (+281 -212) 📝 `src/sdl_window.cpp` (+27 -5) 📝 `src/sdl_window.h` (+1 -2) </details> ### 📄 Description Currently shadps4 just selects the first detected gamepad to use, this PR allows controller selection in the GUI. Unfortunately though, I don't know if I can work on this PR after this, as I may have to be inactive for a while again due to my work responsibilities picking up again starting tomorrow. Assuming this needs further work (very likely) and also since the code is done kinda quickly and quite inelegant (even compared to my other stuff lol), I am very much ok if anyone else will want to take this over. Just leaving it here in case it proves useful. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 22:03:06 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#3277
No description provided.