Skip to content
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

feat(t-deck): Add support for trackball hardware and mouse pointer input #314

Merged
merged 7 commits into from
Aug 24, 2024

Conversation

finger563
Copy link
Contributor

@finger563 finger563 commented Aug 23, 2024

Description

  • Add PointerInput to input_drivers component which is similar to the touchpad input but is geared more towards mice instead of touchscreens. Can be configured to show different cursor objects.
  • Update t-deck component to support the T-Deck's trackball (up/down/left/right/press) which uses the new PointerInput and displays a simple cursor object.
  • Refactor esp-box/matouch-rotary-display/t-deck to move touchpaddata struct and formatters out and into the touchpad_input.

Motivation and Context

The T-Deck's little blackberry-like trackball is a nice little feature and fun to fidget with / use. This PR enables it to be actually functional.

How has this been tested?

  • Building and running t-deck/example on a tdeck and playing with the trackball

Screenshots (if appropriate, e.g. schematic, board, console logs, lab pictures):

trackball-test-compressed.mp4

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update
  • Hardware (schematic, board, system design) change
  • Software change

Checklist:

  • My change requires a change to the documentation.
  • I have added / updated the documentation related to this change via either README or WIKI

Software

  • I have added tests to cover my changes.
  • I have updated the .github/workflows/build.yml file to add my new test to the automated cloud build github action.
  • All new and existing tests passed.
  • My code follows the code style of this project.

Copy link

github-actions bot commented Aug 23, 2024

✅Static analysis result - no issues found! ✅

@finger563 finger563 self-assigned this Aug 24, 2024
@finger563 finger563 merged commit ab0e590 into main Aug 24, 2024
66 checks passed
@finger563 finger563 deleted the feature/cursor-indev-t-deck-trackball branch August 24, 2024 03:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant