SFML community forums

Help => Window => Topic started by: texus on October 22, 2017, 11:37:21 am

Title: Android sends Delete event instead of Backspace
Post by: texus on October 22, 2017, 11:37:21 am
SFML maps the AKEYCODE_DEL (https://developer.android.com/ndk/reference/group___input.html#gga39fca1837c5ce7715cbf571669660c13acd013221b457d98975dc47e49817e28a) event to Keyboard::Delete (WindowImplAndroid.cpp#L623 (https://github.com/SFML/SFML/blob/013d053277c980946bc7761a2a088f1cbb788f8c/src/SFML/Window/Android/WindowImplAndroid.cpp#L623)) while this is actually the backspace key. The real delete key is AKEYCODE_FORWARD_DEL (https://developer.android.com/ndk/reference/group___input.html#gga39fca1837c5ce7715cbf571669660c13a9516bc190d37fea27e07ddab0c607b51).

Is this a bug or was there a reason to do this? I find it strange that I just worked around this in my code when I encountered it a few years ago. Maybe I saw this post (https://en.sfml-dev.org/forums/index.php?topic=13716.msg105902#msg105902) back then and though that it would be fixed, but it looks like it was forgotten.
Title: Re: Android sends Delete event instead of Backspace
Post by: eXpl0it3r on October 22, 2017, 02:32:33 pm
Feel free to open an issue, that way Mario won't forget it, once he gets around working on SFML... ::)
Also link to that forum post in the issue, maybe there's more to extract.