-
Notifications
You must be signed in to change notification settings - Fork 25
Remove gamepad usage #48
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
Conversation
@kattni and I discussed a plan for this yesterday. If we substitute The other possibility is to add conditional import code that allows either @FoamyGuy How does this sound to you? |
Waiting until 7.0.0 is final sounds good to me. I think making the code conditional and supporting both would end up being a bit overly complex due to the differing APIs between them. |
Converting this PR to draft status so it's clear we're waiting to merge it. Once 7.0.0 is released, we can revisit. Thanks! |
We can proceed with this, right? See #52 for a user caught by this. |
@FoamyGuy Can you please drop an empty commit in here so the checks run again? It's almost certainly out of date at this point. Once passing we can get this merged. |
@kattni empty commit added. Will check back in a bit to see if anything needs tweaked to get it passing. |
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.
Looks like it's passing! Thanks!
Updating https://github.com/adafruit/Adafruit_CircuitPython_TM to 1.0.5 from 1.0.4: > Merge pull request adafruit/Adafruit_CircuitPython_TM#7 from tekktrik/feature/add-typing > Updated readthedocs file > Updated readthedocs requirements path > Disabled unspecified-encoding pylint check > add docs link to readme > Globally disabled consider-using-f-string pylint check > Moved CI to Python 3.7 > Added help text and problem matcher > Added pull request template Updating https://github.com/adafruit/Adafruit_CircuitPython_AVRprog to 1.4.0 from 1.3.7: > Merge pull request adafruit/Adafruit_CircuitPython_AVRprog#28 from mafiltenborg/patch-2 > Merge pull request adafruit/Adafruit_CircuitPython_AVRprog#27 from mafiltenborg/patch-1 > Updated readthedocs file > Disabled unspecified-encoding pylint check > Merge pull request adafruit/Adafruit_CircuitPython_AVRprog#26 from adafruit/patch-fix > PATCH Pylint and readthedocs patch test > add docs link to readme > Globally disabled consider-using-f-string pylint check > Moved default branch to main > Moved CI to Python 3.7 > Added help text and problem matcher > Added pull request template Updating https://github.com/adafruit/Adafruit_CircuitPython_PyBadger to 3.6.0 from 3.5.1: > Updated readthedocs file > Merge pull request adafruit/Adafruit_CircuitPython_PyBadger#48 from FoamyGuy/remove_gamepad_usage > Disabled unspecified-encoding pylint check > Merge pull request adafruit/Adafruit_CircuitPython_PyBadger#51 from adafruit/patch-fix > PATCH Pylint and readthedocs patch test > add docs link to readme > Globally disabled consider-using-f-string pylint check
ref: #4940
This removes all usages of
gamepad
andgamepadshift
and replaces them with the analogous APIs fromkeypad
I tested these changes on all affected devices supported by this library: PyBadge, PyGamer, CLUE, CPB+Gizmo, and PewPewM4 all on CircuitPython 7.0.0-alpha.5