Getting input in Android
Monkey Targets Forums/Android/Getting input in Android
| ||
How would you bring up the standard keyboard and then get the input? I hope you don't have to code one yourself? |
| ||
Well on the emulator I gave it a quick go but the andriod app would not accept commands from the keyboard eg, KeyHit(KEY_A) etc. TBH I would rather code a simple onscreen keyboard to maintain the look of the game(s)... atleast for entering player names and highscores. But I guess I am rambling and have not answered your question =D |
| ||
I know monkey is not suited for apps but games, still I want to make an app where I need to get input from the user. Then maybe i'll just code a keyboard myself. Also: Any way to make my app more like an app (native elements like textfields) and not going full screen. |
| ||
I've just tested it on a handy with keyboard. KeyHit(KEY_1) is not working properly. |
| ||
I tested it with Android emulator, and KeyDown(KEY_A) is not working either. Yes, I added the keyboard support to the emu file. |
| ||
Thanks for testing @Supertino and Volker PS: @Volker: You wanted to write mobile phone, right? ^^ |
| ||
I did a quick test with this bit of code:for i=0 to 255 if KeyDown(i) //Draw Thumbs Up!! :) End Next The only thing it reacted to was a touch on the screen. This was in the emulator with a keyboard enabled and also on my Desire. |
| ||
PS: @Volker: You wanted to write mobile phone, right? ^^ Yes, of course :-) |