Skip to content

Cursor Control! #1

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 36 commits into from
Jun 26, 2019
Merged

Cursor Control! #1

merged 36 commits into from
Jun 26, 2019

Conversation

brentru
Copy link
Member

@brentru brentru commented Jun 20, 2019

This library adds a Cursor displayio sub-Group to any group created in code.py. It contains methods to move, scale, and hide the cursor as well as generating a cursor bitmap.

A display object is provided to the Cursor class for dynamically setting a bounding box for the cursor based on screen dimensions.

Two examples are included: a simpletest which appends the cursor to an empty Group and a more advanced example involving creating a Group with a cursor, click-able buttons and text elements.

@brentru brentru requested a review from a team June 20, 2019 22:09
brentru added 3 commits June 25, 2019 11:08
…update() yielded a click. both examples use cursormanager. negative speed can not be set.
@brentru
Copy link
Member Author

brentru commented Jun 25, 2019

Tagging @ladyada, CursorManager added to examples and ready for re-review.

@brentru brentru requested a review from ladyada June 25, 2019 22:20
@ladyada ladyada merged commit 4f1f480 into adafruit:master Jun 26, 2019
@brentru brentru deleted the cursor-control branch June 26, 2019 16:39
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.

2 participants