mirror of
https://github.com/games-on-whales/inputtino.git
synced 2026-10-15 12:52:02 +00:00
[PR #43] [2/5] MAC handling: Mac struct + pooled allocation (PS5) #46
Labels
No labels
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
games-on-whales/inputtino#46
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/games-on-whales/inputtino/pull/43
Author: @kmreisi
Created: 6/28/2026
Status: 🔄 Open
Base:
stable← Head:feat/mac-struct-pool📝 Commits (6)
2ca4e07Align PS5 MAC handling via shared uhid helpers7a88920Introduce Mac struct with shared helpers342f6c3Use pooled MAC allocation with reuse on releaseb24e301fix(mac): monotonic counter allocation, validate parse inputd010cdbrefactor(uhid): move find_uhid_sys_nodes out of the headerb4f7fe9test(capi): assert every switch node path, not just the first📊 Changes
10 files changed (+276 additions, -113 deletions)
View changed files
📝
CMakeLists.txt(+2 -1)📝
include/inputtino/input.hpp(+2 -8)➕
include/inputtino/mac.hpp(+42 -0)➕
src/mac.cpp(+103 -0)📝
src/uhid/include/uhid/protected_types.hpp(+1 -11)📝
src/uhid/include/uhid/uhid.hpp(+10 -2)📝
src/uhid/joypad_ps5.cpp(+17 -84)➕
src/uhid/uhid.cpp(+50 -0)📝
tests/testCAPI.cpp(+11 -7)📝
tests/testUHID.cpp(+38 -0)📄 Description
[2/5]in the dynamic-UHID-joypads roadmap (see #44).Foundational refactor of the PS5 virtual-device MAC handling, pulled out ahead of
the joypad work so it can land on its own:
Macstruct (include/inputtino/mac.hpp) with parse/format/comparehelpers; implementation in
src/mac.cppso the public header stays light.devices to avoid collisions (the kernel rejects duplicate MACs).
PS5-only and behavior-preserving (
PS5Joypad::createunchanged); the Switch padadopts the same
Macstruct in[4/5]. Builds, tests pass, Sunshine + wolf compile.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.