2
私はActorでInputListener
を使用しようとしましたが、touchUpが呼び出されないようです。他のすべての方法は私のために働く。Scene2d:InputListenerがtouchUpを呼び出さない
stage = new Stage(new ScreenViewport());
Widget actor = new Widget();
actor.setFillParent(true);
actor.addListener(new InputListener() {
public void touchUp(InputEvent event, float x, float y, int pointer, int button) {
Gdx.app.log("", "");
}
});
stage.addActor(actor);
Gdx.input.setInputProcessor(stage);