[PR #210] [CLOSED] - Initial gamepad support (needs more work..) #1395

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

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/210
Author: @raziel1000
Created: 6/24/2024
Status: Closed

Base: mainHead: gamepad_0


📝 Commits (4)

  • 808f228 - Initial gamepad support using SDL3 (tested quickly with an xbox one controller and only supports one connected pad for now), vibration should work too
  • 241c8e0 - vibration only when we are actually using a gamepad, will make it better later :p
  • 3b36fdc switched gamepad buttons and axis to event gbutton/gaxis instead and moved it to WindowSDL::waitEvent() (just testing for now)
  • 69223f1 ---

📊 Changes

9 files changed (+166 additions, -8 deletions)

View changed files

📝 src/common/config.cpp (+12 -0)
📝 src/common/config.h (+2 -0)
📝 src/core/libraries/pad/pad.cpp (+14 -5)
📝 src/input/controller.cpp (+10 -0)
📝 src/input/controller.h (+6 -0)
📝 src/qt_gui/main_window.cpp (+12 -1)
📝 src/qt_gui/main_window_ui.h (+7 -0)
📝 src/sdl_window.cpp (+101 -2)
📝 src/sdl_window.h (+2 -0)

📄 Description

  • Initial gamepad support using SDL3 (tested quickly with an xbox one controller and only supports one connected pad for now), vibration should work too
  • Added a quick combobox to switch between keyboard and gamepad in Qt version.
  • to enable this add controller = 1 in config.toml under [General], or delete your config.toml and let the emu create a new one.
    controller = 0 for keyboard
    controller = 1 for gamepad

🔄 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/210 **Author:** [@raziel1000](https://github.com/raziel1000) **Created:** 6/24/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `gamepad_0` --- ### 📝 Commits (4) - [`808f228`](https://github.com/shadps4-emu/shadPS4/commit/808f228e546e3c0ea1f377d32c0e2f19f41f2788) - Initial gamepad support using SDL3 (tested quickly with an xbox one controller and only supports one connected pad for now), vibration should work too - [`241c8e0`](https://github.com/shadps4-emu/shadPS4/commit/241c8e00779e451aeb216d1deabb9e6f23739f1f) - vibration only when we are actually using a gamepad, will make it better later :p - [`3b36fdc`](https://github.com/shadps4-emu/shadPS4/commit/3b36fdc3d2fa209357814159eddaa02b49760c1a) switched gamepad buttons and axis to event gbutton/gaxis instead and moved it to WindowSDL::waitEvent() (just testing for now) - [`69223f1`](https://github.com/shadps4-emu/shadPS4/commit/69223f10ba66ca11611badd5b039817331467393) --- ### 📊 Changes **9 files changed** (+166 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `src/common/config.cpp` (+12 -0) 📝 `src/common/config.h` (+2 -0) 📝 `src/core/libraries/pad/pad.cpp` (+14 -5) 📝 `src/input/controller.cpp` (+10 -0) 📝 `src/input/controller.h` (+6 -0) 📝 `src/qt_gui/main_window.cpp` (+12 -1) 📝 `src/qt_gui/main_window_ui.h` (+7 -0) 📝 `src/sdl_window.cpp` (+101 -2) 📝 `src/sdl_window.h` (+2 -0) </details> ### 📄 Description - Initial gamepad support using SDL3 (tested quickly with an xbox one controller and only supports one connected pad for now), vibration should work too - Added a quick combobox to switch between keyboard and gamepad in Qt version. - to enable this add controller = 1 in config.toml under [General], or delete your config.toml and let the emu create a new one. controller = 0 for keyboard controller = 1 for gamepad --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 21:12:22 +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#1395
No description provided.