Skip to content

spotrem: add volume knob gesture #3847

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

Open
wants to merge 30 commits into
base: master
Choose a base branch
from
Open

Conversation

thyttan
Copy link
Collaborator

@thyttan thyttan commented May 9, 2025

Can be tried at: https://thyttan.github.io/BangleApps/?id=spotrem

Edit:
Adds two new modules for dial functionality, one for touch interaction and one for graphics. This is used in spotrem to provide the volume knob.

@bobrippling
Copy link
Collaborator

Very cool! Works well when I tested it. Do you think it's worth mentioning that the clockwise/anticlockwise gesture detection is stopped after a brief period of no-interaction?

Not for this PR, but if you wanted ideas on going further with this feature, it'd be cool to pull it out to a library and let other apps opt into the clockwise gesture, and during the clockwise gesture, display a circle on screen that follows the user's gesture. But obviously those are much bigger changes!

@thyttan
Copy link
Collaborator Author

thyttan commented May 15, 2025

Thanks :)

Do you think it's worth mentioning that the clockwise/anticlockwise gesture detection is stopped after a brief period of no-interaction?

Yes! Will add that.

[...] it'd be cool to pull it out to a library and let other apps opt into the clockwise gesture, and during the clockwise gesture, display a circle on screen that follows the user's gesture. But obviously those are much bigger changes!

Yes - that's where I started with this. But I switched to this focused implementation first to dial in the UX (pun intended).

@thyttan thyttan marked this pull request as draft May 26, 2025 23:13
@thyttan thyttan requested a review from bobrippling August 12, 2025 21:19
@thyttan
Copy link
Collaborator Author

thyttan commented Aug 12, 2025

@bobrippling this is maybe done now! Please comment any feedback you may have :)

It now adds two new modules for dial functionality, one for touch interaction and one for graphics. This is used in spotrem to provide the volume knob.

@thyttan thyttan marked this pull request as ready for review August 13, 2025 11:13
if (isFill) g.fillCircle(x, y, rad);
}
if (this.isFirstDraw) {
g.setColor(0,0,0).fillCircle(CENTER.x, CENTER.y, 25);
Copy link
Collaborator Author

@thyttan thyttan Aug 13, 2025

Choose a reason for hiding this comment

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

I guess the radii for the drawing operations should not be hardcoded to 25, 23, 9 etc but depend on the DIAL_RECT...

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