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

onRelease listener? #1

Open
koopa00 opened this issue Jan 4, 2018 · 0 comments
Open

onRelease listener? #1

koopa00 opened this issue Jan 4, 2018 · 0 comments

Comments

@koopa00
Copy link

koopa00 commented Jan 4, 2018

Hi, great work, this widget is really easy to implement and fun to use.

I am looking for a way to trigger an event upon release of the joystick (to make sure to send a final 0 strength value to overwrite any previous data). I have tried an onTouch listener with a condition on the motionEvent to be MotionEvent.ACTION_BUTTON_RELEASE, but it does not trigger.

Do you have any suggestion on how I may accomplish this?

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

No branches or pull requests

1 participant