I'm working on a menu system with libGdx and I'm not sure how to handle Text Input. I was planning to manage simple buttons like normal drawable sprites, but I'm not sure how to handle text boxes. Obviously any text box needs to bring up the soft keyboard, but I'm not sure how to trigger it and how to respond to the input.
Is there anything in libGdx or ODK that makes this easier? How can I go about getting text input within my libGdx game? Thanks.
Comments
Gdx.input.setInputProcessor(stage_instance);If you don't the stage never receives input events from anything.
Then, according to the wiki, there is also "TextInputListener" that can also be used:
http://code.google.com/p/libgdx/wiki/InputTextInput
Also: