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

Allow apps to handle the Android "back" button. #27

Merged
merged 1 commit into from
Jul 23, 2018
Merged

Conversation

gmp216
Copy link
Contributor

@gmp216 gmp216 commented Jul 23, 2018

Rough patch to allow apps to handle the "back" button without Android closing the app. This should be user-configurable but not sure on how you would like to implement this as app/handleEvents() does not keep a pointer to the nativeActivity struct where this configuration would logically be maintained.

@xlab
Copy link
Owner

xlab commented Jul 23, 2018

Thanks, yes, let's have it this way for now. I will consider passing the config reference here.

@xlab xlab merged commit ebf4d6d into xlab:master Jul 23, 2018
@gmp216
Copy link
Contributor Author

gmp216 commented Jul 23, 2018

Thanks for the quick merge. It would be nice to be able to pass a "handled" bool back from your evHandler, but that would change the signature of app.HandleInputQueues() and break compatibility with existing apps.

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