mirror of
https://github.com/safijari/openpuck.git
synced 2026-11-04 06:34:45 +00:00
[PR #19] [MERGED] Add D-pad direction targets for back-paddle mapping (new modular architecture) #157
Labels
No labels
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
safijari/openpuck#157
Loading…
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/safijari/openpuck/pull/19
Author: @Copilot
Created: 6/9/2026
Status: ✅ Merged
Merged: 6/11/2026
Merged by: @safijari
Base:
main← Head:copilot/17📝 Commits (4)
44bd5fdAdd d-pad options for back paddle mappingd67d3b2Merge main and port dpad back-mapping419a080Document hat mapping for back-paddle dpad codes1d43328Merge branch 'main' into copilot/17📊 Changes
8 files changed (+22 additions, -8 deletions)
View changed files
📝
OpenPuck/config.cpp(+1 -1)📝
OpenPuck/config.h(+1 -1)📝
OpenPuck/gamepad_util.cpp(+2 -1)📝
OpenPuck/mode_switch_hori.cpp(+11 -0)📝
OpenPuck/mode_switch_pro.cpp(+2 -1)📝
OpenPuck/mode_xinput.cpp(+3 -2)📝
OpenPuck/serial_console.cpp(+1 -1)📝
docs/index.html(+1 -1)📄 Description
Back paddles were configurable only to face/shoulder/system buttons, which prevented mapping them to directional pad input. This PR extends the mapping model so each paddle can emit D-pad Up/Down/Left/Right across supported controller output modes.
This was updated to align with the new modular architecture after merging latest
main, with conflict resolution that preserved the architecture split and reapplied the D-pad mapping behavior in the new module layout.Web config UI
docs/index.html:D-pad Up(12)D-pad Down(13)D-pad Left(14)D-pad Right(15)Firmware mapping model (modularized)
12..15for D-pad directions in the modular code paths.OpenPuck/mode_xinput.cpp(codeToXB) to map new codes to XInput D-pad bits.OpenPuck/gamepad_util.cpp(psOrBackCode) to map new codes to internal Steam/PS-style directional flags.OpenPuck/mode_switch_pro.cpp(codeToJc) to map new codes to Switch Pro directional bits.OpenPuck/mode_switch_hori.cppto bridge mapped paddle D-pad codes into HORIPAD hat output.Operator-facing config/docs strings
Kcommand help text to reflect the expanded code range.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.