Repository navigation
Fix gameplay input lockout from off-centre sticks - #46
Conversation
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Controller activity check app/src/StreamView.cpp |
The guard no longer checks analog-axis thresholds. Controller button and touch activity still count. The unused <cmath> include was removed. |
Priority:
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Suggested reviewers: blade-punisher
Merge Risk: 
Minimal · up to 3104e
-
The change allows gameplay to resume with held or drifting sticks while retaining button and touchscreen release protection. No actionable merge-blocking risk was identified; hardware behavior and reported tests were not independently verified.
Pre-merge checks: 
4 · 
1
-
Failed checks: 1 warning Passed checks: 4 passedFull details: Docstring Coverage
-
Explanation
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 1 functions across 1 files.
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
-
Finishing Touches: 💡 1
-
📝 Generate docstrings: 💡
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands.
The input-release guard waits for all four stick axes to return within 0.15 of centre before allowing any gameplay input. Joy-Con drift or a held stick can keep the guard active indefinitely after focus returns or an overlay closes, even while the local +/- overlay still responds.
Stop using stick position to gate gameplay resumption. Preserve the existing button and touchscreen release checks, controller mapping, deadzones and wire reports.
Validation:
-Wall -Wextra -Werror.Summary by CodeRabbit