-
-
Notifications
You must be signed in to change notification settings - Fork 124
psyqo Multi-tap driver and example update #1815
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
johnbaumann
merged 23 commits into
grumpycoders:main
from
johnbaumann:psyqo_multitap_additions
Feb 27, 2025
Merged
Changes from 4 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
6ce813b
Add getters for adc+pad type, update multitap example
johnbaumann de152b9
Fix(?) adc numbering, adc styling
johnbaumann 07b6a96
Add getter for raw halfword. Fix+tidy example
johnbaumann 0631089
Merge branch 'grumpycoders:main' into psyqo_multitap_additions
johnbaumann 929e76f
Bump copyright, use vprintf, play with some logic
johnbaumann e73f7fd
Address some of the wascally wabbit's nitpicks
johnbaumann 7b4f815
Merge branch 'main' into psyqo_multitap_additions
johnbaumann af630c4
Fix documenation mistake, woops.
johnbaumann f3ee66e
Change Pad to enum class, add casts, more doc
johnbaumann 131796e
Kill other adc getters, too redundant.
johnbaumann 2e21c2f
Sneaking in more changes... Try to improve code readability
johnbaumann 3215462
The rabbit is right... ugh
johnbaumann ceea701
Merge branch 'main' into psyqo_multitap_additions
johnbaumann a1a2ae7
Add fishingcon, more adc, resize PadData
johnbaumann 3b85d77
Fix for analog pad with LED previously config'd off, bad pad ID
johnbaumann 791b520
Merge branch 'main' into psyqo_multitap_additions
johnbaumann 98aa616
Rename and add some documentation, small tweaks
johnbaumann 6c79a91
Merge branch 'main' into psyqo_multitap_additions
johnbaumann c7ecace
Merge branch 'psyqo_multitap_additions' of https://github.com/johnbau…
johnbaumann 6ee8271
Revert data type in processChanges
johnbaumann c61e2fb
Merge branch 'main' into psyqo_multitap_additions
johnbaumann 0b1141a
Polyfill std::to_underlying and convert several static_casts
johnbaumann 588f68d
Update utility-polyfill.h
johnbaumann File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Refactor to reduce cyclomatic complexity in
printPadType
.This method’s complexity triggers a warning. As more pad types or logic are added, it can become unwieldy. A lookup table or map-based approach could drastically simplify this switch statement.
🧰 Tools
🪛 GitHub Check: CodeScene Cloud Delta Analysis (main)
[warning] 156-200: ❌ New issue: Complex Method
MultitapTestScene::printPadType has a cyclomatic complexity of 13, threshold = 9. This function has many conditional statements (e.g. if, for, while), leading to lower code health. Avoid adding more conditionals and code to it without refactoring.