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

fix for TFT_eSPI_Button compatibility mode #139

Merged
merged 4 commits into from
Jul 3, 2024
Merged

Conversation

tobozo
Copy link
Contributor

@tobozo tobozo commented Oct 16, 2023

The TFT_eSPI_Button compatibility mode was half-baked and apparently untested: TFT_eSPI_Button::justPressed() and TFT_eSPI_Button::justReleaed() always returned true 🤦

With this patch, TFT_eSPI_Button does not use the ::contains() and ::isPressed() methods from the inherited (and failing) Button object.

@Tinyu-Zhao Tinyu-Zhao merged commit 171ad23 into m5stack:master Jul 3, 2024
1 of 2 checks passed
Tinyu-Zhao added a commit that referenced this pull request Jul 3, 2024
 fix for TFT_eSPI_Button compatibility mode
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