1
SFML wiki / Android example can not close on Escape
« on: February 06, 2016, 03:08:46 pm »
Hello,
I try to run android example through wiki "Tutorial: Building SFML for Android".
As was expected it worked.
I added Escape key release checking to close via Back button on the tablet.
Any idea ? What can I do ?
Thanks
Edit:
I noticed same question at this link![Sad :(](https://www.sfml-dev.org/forums/Smileys/default/sad.gif)
http://en.sfml-dev.org/forums/index.php?PHPSESSID=ot7h2v1oj9hmn1qop9q78i4s03&topic=19145.msg141108#msg141108
I try to run android example through wiki "Tutorial: Building SFML for Android".
As was expected it worked.
I added Escape key release checking to close via Back button on the tablet.
if (event.type == sf::Event::KeyReleased)
{
if (event.key.code == sf::Keyboard::Escape)
window.close();
}
It can not close properly.{
if (event.key.code == sf::Keyboard::Escape)
window.close();
}
Any idea ? What can I do ?
Thanks
Edit:
I noticed same question at this link
![Sad :(](https://www.sfml-dev.org/forums/Smileys/default/sad.gif)
http://en.sfml-dev.org/forums/index.php?PHPSESSID=ot7h2v1oj9hmn1qop9q78i4s03&topic=19145.msg141108#msg141108