1
私はタッチしたい画像を持っています。タッチした後に指を離したときにのみアクティブになります。ドキュメントのようにTouchUpを使用しようとしていますが、役に立たないですLibgdx touchup on image
large_jackpot.addListener(new InputListener() {
public boolean touchDown(InputEvent event, float x, float y, int pointer, int button) {
Gdx.app.log("Example", "touch started at (" + x + ", " + y + ")");
return true;
}
public void touchUp(InputEvent event, float x, float y, int pointer, int button) {
Gdx.app.log("Example", "touch done at (" + x + ", " + y + ")");
app.setScreen(app.loadingScreen);
}
});