[PR #407] [MERGED] Basic gamepad support through SDL #1543

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

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/407
Author: @counter185
Created: 8/12/2024
Status: Merged
Merged: 8/13/2024
Merged by: @raphaelthegreat

Base: mainHead: sdl-basic-gamepad


📝 Commits (7)

📊 Changes

5 files changed (+128 additions, -4 deletions)

View changed files

📝 src/core/libraries/pad/pad.cpp (+16 -4)
📝 src/input/controller.cpp (+26 -0)
📝 src/input/controller.h (+7 -0)
📝 src/sdl_window.cpp (+75 -0)
📝 src/sdl_window.h (+4 -0)

📄 Description

Ideally we'd have a whole GUI to configure gamepads for every player but that's kind of a long-term goal, so for now I made it just take the first SDL-compatible controller and pass it's buttons and axes to WindowSDL's controller, just like the current keyboard handler does. It's not much, but I think it will make early testing less annoying, especially for me with an 80% keyboard with no numpad.


🔄 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/407 **Author:** [@counter185](https://github.com/counter185) **Created:** 8/12/2024 **Status:** ✅ Merged **Merged:** 8/13/2024 **Merged by:** [@raphaelthegreat](https://github.com/raphaelthegreat) **Base:** `main` ← **Head:** `sdl-basic-gamepad` --- ### 📝 Commits (7) - [`ff8c6e0`](https://github.com/shadps4-emu/shadPS4/commit/ff8c6e01629a6d20a133e60fa9055fd781b1296a) Add basic gamepad support through SDL - [`81b529d`](https://github.com/shadps4-emu/shadPS4/commit/81b529d9fed22c8c622eab761fcc6d8f70aa40e4) Merge branch 'shadps4-emu:main' into sdl-basic-gamepad - [`fb113e7`](https://github.com/shadps4-emu/shadPS4/commit/fb113e7458a5a0d31cda17cfec98d13c976ee549) lightbar, vibration, code style changes - [`edf3fa6`](https://github.com/shadps4-emu/shadPS4/commit/edf3fa6a10d955852f59a1d8dd9c030fe6c9993a) Merge branch 'shadps4-emu:main' into sdl-basic-gamepad - [`96ee0f7`](https://github.com/shadps4-emu/shadPS4/commit/96ee0f7587166efbacb02f56aef3cc6903887d56) okay fine - [`285fb8f`](https://github.com/shadps4-emu/shadPS4/commit/285fb8fafd11d47a118825e98be7081693655ce6) Merge branch 'sdl-basic-gamepad' of https://github.com/counter185/shadPS4 into sdl-basic-gamepad - [`a64c820`](https://github.com/shadps4-emu/shadPS4/commit/a64c820b2120a3a1279f17524b71912108ab0881) one day clang format will finally pass ### 📊 Changes **5 files changed** (+128 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `src/core/libraries/pad/pad.cpp` (+16 -4) 📝 `src/input/controller.cpp` (+26 -0) 📝 `src/input/controller.h` (+7 -0) 📝 `src/sdl_window.cpp` (+75 -0) 📝 `src/sdl_window.h` (+4 -0) </details> ### 📄 Description Ideally we'd have a whole GUI to configure gamepads for every player but that's kind of a long-term goal, so for now I made it just take the first SDL-compatible controller and pass it's buttons and axes to `WindowSDL`'s `controller`, just like the current keyboard handler does. It's not much, but I think it will make early testing less annoying, especially for me with an 80% keyboard with no numpad. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 21:13:00 +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#1543
No description provided.