mirror of
https://github.com/games-on-whales/inputtino.git
synced 2026-10-15 12:52:02 +00:00
[PR #41] [5/5] Joy-Con (L/R) support #45
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#45
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/41
Author: @kmreisi
Created: 6/26/2026
Status: 🔄 Open
Base:
stable← Head:feature/joycons📝 Commits (10+)
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 first52736d1Share get_nodes() via sys_nodes_to_dev_paths helper49d35fefeat(joypad): runtime uhid/uinput selection + self-describing udevc1acbdafeat(joypad): add UHID Nintendo Switch Pro controllera2803e9feat(joypad): add Joy-Con Left and Right support📊 Changes
24 files changed (+2569 additions, -278 deletions)
View changed files
📝
CMakeLists.txt(+18 -5)📝
include/inputtino/input.hpp(+278 -47)➕
include/inputtino/mac.hpp(+42 -0)➕
src/host_capability.cpp(+103 -0)➕
src/mac.cpp(+103 -0)➕
src/udev_helpers.hpp(+63 -0)➕
src/uhid/include/uhid/joypad_common.hpp(+64 -0)📝
src/uhid/include/uhid/protected_types.hpp(+28 -14)➕
src/uhid/include/uhid/switch.hpp(+128 -0)📝
src/uhid/include/uhid/uhid.hpp(+38 -5)📝
src/uhid/joypad_ps5.cpp(+183 -125)➕
src/uhid/joypad_switch.cpp(+744 -0)➕
src/uhid/uhid.cpp(+50 -0)📝
src/uinput/include/inputtino/protected_ps5_types.hpp(+1 -1)📝
src/uinput/include/inputtino/protected_types.hpp(+3 -1)📝
src/uinput/joypad_nintendo.cpp(+29 -17)📝
src/uinput/joypad_ps.cpp(+24 -33)📝
src/uinput/joypad_utils.hpp(+38 -0)📝
src/uinput/joypad_xbox.cpp(+8 -1)📝
tests/CMakeLists.txt(+3 -0)...and 4 more files
📄 Description
[5/5]in the dynamic-UHID-joypads roadmap — see #44.Individual Joy-Cons via the factory:
Joypad::TYPEgainsJOYCON_LEFT/JOYCON_RIGHT;host_capabilityowns their hid-nintendo product ids and routesthem through the same
SwitchJoypad, which picks Pro / L / R from the product id.Stacks on #37. Builds,
[JoyCon]+[Factory]tests pass, Sunshine + wolf compile.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.