Search in sources :

Example 1 with InputListener

use of io.anuke.ucore.scene.event.InputListener in project Mindustry by Anuken.

the class TextFieldDialogListener method add.

public static void add(TextField field, int type, int max) {
    field.addListener(new TextFieldDialogListener(field, type, max));
    field.addListener(new InputListener() {

        public boolean touchDown(InputEvent event, float x, float y, int pointer, int button) {
            Gdx.input.setOnscreenKeyboardVisible(false);
            return false;
        }
    });
}
Also used : InputListener(io.anuke.ucore.scene.event.InputListener) InputEvent(io.anuke.ucore.scene.event.InputEvent)

Aggregations

InputEvent (io.anuke.ucore.scene.event.InputEvent)1 InputListener (io.anuke.ucore.scene.event.InputListener)1