I’ve been porting my iOS game to Android with Corona, and mostly it’s been smooth. It’s a simple anagram game that uses the keyboard.
The issue I am having is from using the native keyboard and native textfield. Currently I have a convoluted system with a native TextField that takes input from the native keyboard and another Corona text object that copies the TextField text but only allows letters in the anagram to appear. However, I still cannot get it to work quite right.
I think if I could do any of the following it would work:
- native.setKeyboardFocus( textfield ) sets the cursor to the beginning of the line in the native TextField – if it set the cursor to the end of the line then my game would work, or if I could move the cursor from my code
- if I could capture native keyboard keypresses directly (specifically, backspace) from my code
- if I could delete one character from the end of the native TextField (mimic a backspace keypress) from my code
I am eager to release something on Corona but it’s pretty painful to get stuck like this. I’ve tried the XUI floating keyboard, but it looks odd since it’s a small ipad keyboard on the kindle fire (about half the height of the real keyboard), and it does not respond that well to keypresses compared to the native keyboard.
Thanks! [import]uid: 94304 topic_id: 25859 reply_id: 325859[/import]
[import]uid: 52491 topic_id: 25859 reply_id: 104607[/import]
[import]uid: 52491 topic_id: 25859 reply_id: 105558[/import]