Repository navigation
Add a masked 3D controller input and hotplug sample - #35
Merged
Merged
Conversation
added 6 commits
November 20, 2026 22:46
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.