Page 1 of 1
"Home" button does not work?
Posted: Tue Jan 05, 2016 7:13 pm
by Kasperelo
I check in love.keyreleased() for key == "home" to stop some game stuff, but it doesn't seem to register? The "escape" (back button) works though. I'm talking about the physical buttons, sometimes part of the GUI.
Re: "Home" button does not work?
Posted: Tue Jan 05, 2016 7:20 pm
by Nixola
I think some key / key combinations are "hijacked" by Android and not passed to SDL2, so if I'm right there's not much that can be done about it.
Re: "Home" button does not work?
Posted: Tue Jan 05, 2016 7:23 pm
by Kasperelo
hm... do you know any other way to stop the background music when the user exits?
Re: "Home" button does not work?
Posted: Tue Jan 05, 2016 7:25 pm
by Nixola
Is [wiki]love.focus[/wiki] called?
Re: "Home" button does not work?
Posted: Tue Jan 05, 2016 7:30 pm
by Kasperelo
Trying it now
Re: "Home" button does not work?
Posted: Tue Jan 05, 2016 7:31 pm
by Kasperelo
Yes! It works! Thanks