Skip to content

Add a masked 3D controller input and hotplug sample - #35

Merged
capz merged 6 commits into
mainfrom
feat/controller-input-hotplug
Nov 20, 2026
Merged

capz merged 6 commits into
mainfrom
feat/controller-input-hotplug

Conversation

@capz

@capz capz commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

Adds a controller input and hotplug sample using the approved mockup as the fixed shell and background. Photo-textured 3D controls share its neutral projection, with a shell depth mask hiding their bases while raised caps protrude. Both sticks pivot, the D-pad rocks, buttons depress, and L/R include analog travel and separate digital detents. The original right-side Z and button orientations are preserved.

The sample polls all four ports once per frame, follows meaningful recent input, handles reconnects without false presses, and returns controls to neutral on unplug. Live readouts show calibrated axes, triggers and held buttons. Hold Start+Z for two seconds to exit.

Validation: input tests pass in Debug/Release; managed Release builds without warnings; sample/test manifests and Rider configurations pass. The public SDK DOL/ELF passed 87 native acceptance events, including all 12 buttons, both sticks, trigger detents, 18 real SI hotplug transitions, neutral controls after unplug, and normal exit. Actual native screenshots and a 25.6-second recording accompany the CI artifact.

A separate uninterrupted Dolphin run measured 553 microseconds mean active CPU time across 120 frames, with no arena, collection-count or native-resource growth over 180 steady presentations. The sample reserves a 4 MiB managed arena and uses 3,345,704 native draw-resource bytes. Original-console performance has not been measured.

Source artwork, the reproducible offline texture cooker and asset hashes are included. The controller-input-native-review artifact contains the DOL/ELF, screenshots, recording and reports.

@capz
capz merged commit 16a0bc4 into main Nov 20, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant