mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-26 00:05:58 +03:00
[PR #407] [MERGED] Basic gamepad support through SDL #1543
Labels
No labels
Bloodborne
bug
contributor wanted
documentation
enhancement
frontend
good first issue
help wanted
linux
pull-request
question
release
verification progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shadPS4#1543
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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:
main← Head:sdl-basic-gamepad📝 Commits (7)
ff8c6e0Add basic gamepad support through SDL81b529dMerge branch 'shadps4-emu:main' into sdl-basic-gamepadfb113e7lightbar, vibration, code style changesedf3fa6Merge branch 'shadps4-emu:main' into sdl-basic-gamepad96ee0f7okay fine285fb8fMerge branch 'sdl-basic-gamepad' of https://github.com/counter185/shadPS4 into sdl-basic-gamepada64c820one day clang format will finally pass📊 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'scontroller, 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.