Skip to content

Add CursorControl for non-touchscreen hardware and fixes for smaller rez. displays #9

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
merged 9 commits into from
Jun 27, 2019

Conversation

brentru
Copy link
Member

@brentru brentru commented Jun 26, 2019

This pull request adds Cursor + Joystick compatibility to PYOA using Adafruit_CursorControl. This is useful for people creating games using PYOA and the Adafruit PyGamer/PyBadge.

Changes:

  • Detects touchscreen/joystick+button hardware and instantiates the appropriate classes.
  • Added dynamic button and text rescaling depending on display size (Adafruit PyGamer has a smaller rez display than the PyPortal).
  • Added SPEAKER audio for PyGamer
  • Replaced bitmap font loading with the builtin system font, terminalio, for rendering text on smaller displays.

Examples:

  • Updated the cave cyoa.json example to use less characters, split one of the larger cards in half for smaller displays.

@brentru brentru requested a review from dastels June 26, 2019 16:59
@ladyada ladyada merged commit 09d5e7c into adafruit:master Jun 27, 2019
Copy link
Collaborator

@dastels dastels left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.

3 participants