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

Back button doesn't work #699

Closed
Tungsteno74 opened this issue Apr 6, 2016 · 5 comments
Closed

Back button doesn't work #699

Tungsteno74 opened this issue Apr 6, 2016 · 5 comments

Comments

@Tungsteno74
Copy link

For some reason the back button doesn't work with sdl2, but work well with pygame backend (the app is closed) . When pressing, the button light up and vibrate but nothing else happens.
It could be a problem for event interception by the engine?

OS: Android 4.4.2

Some confirmation?

@kived
Copy link
Contributor

kived commented Apr 9, 2016

Yes, in the pygame backend we have mapped the Android Back button to 27 (ESC), but have not done so yet for SDL2.

@Tungsteno74
Copy link
Author

Thanks @kived . I'm not very able with kivy config (i'm still learning it)
But there is (for the moment) a fast fix for setup Android back button as ESC in an app?
thanks again

@kived
Copy link
Contributor

kived commented Apr 10, 2016

The Android Back button should be keycode 4 instead of 27, try that. If nothing else, you can always have your keyboard callback method print the received keycodes. Then load your app, and press the back button - whatever prints out is what you need to look for. Either way, when you have that set up you can go back a screen when the back button is pressed, or exit your app if there's nowhere to go back.

@Tungsteno74
Copy link
Author

Ok thanks! this fix the problem.

@kived
Copy link
Contributor

kived commented Apr 22, 2016

Fixed in kivy/kivy#4207

@kived kived closed this as completed Apr 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants