google translate…
hi, I have a strange problem with entering characters with the virtual keyboard,
when I use uppercase, before the desired character an unknown character is inserted, square with an X inside
I tried everything, I changed tablet, updated sdk, updated android, updated processing but the problem remained.
Thanks for your help
Hi @camperos, welcome to the forum.
It’s obviously a bug.
My workaround is
If (key != '') msg += key;
What are you planning. If it is an edit box you are better of with an android java edit box. For instance If you want to use a back space you can do so by keeping track of the textWidth of each character and blank it out with a rect. There are other problems making it difficult. If you want a code for an android java edit box I can post it. Just let me know.
Edit: In code above the “notdef” character is not printed.
Are you sure you put this “notdef” character between the single quotes in my code above? It solves the problem on all my devices. What android version are you using, and on what device.?
@Chrisir, @camperos , Yes, it s the shitft key, but with android it is not coded as ==SHIFT; it is coded with= 59 and i think , like noel, that you have to create an edit text (android snippet) and add some keyEyEventListener(); i would try that ASAP, and tell you.
@camperos ===
you dont need your mess1, which stores the shift modifier event, which is useless;
As for your question that is easy to understand: Shift is a key event that you can capture but it s not a char and if you ask to draw it you get what you have said…I would add that the problem (and the result) is the same for keyEvents of the same kind, like “delete”