Skip to content

Instantly share code, notes, and snippets.

@riseremi
Created October 23, 2015 21:56
Show Gist options
  • Save riseremi/06e1fffe5d3ad66de6ad to your computer and use it in GitHub Desktop.
Save riseremi/06e1fffe5d3ad66de6ad to your computer and use it in GitHub Desktop.
How to show native Text Field with lingdx
final TextInputListener textListener = new TextInputListener() {
@Override
public void input(String input) {
System.out.pringln("Submitted: " + input);
}
@Override
public void canceled() {
System.out.println("Aborted");
}
};
// the thing
Gdx.input.getTextInput(textListener, "Title", "Text", "Hint");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment