Quantcast
Channel: BlogoSfera » events
Viewing all articles
Browse latest Browse all 19

Can an Actor handle click and key down events?

$
0
0

I’m trying to make an Actor handle both click and key down events. I initialized the actor (in this case, an Image) as following: stage = new Stage(); texture = new Texture("badlogic.jpg"); Image image = new Image(texture); image.addListener(new ClickListener() { @Override public void clicked(InputEvent event, float x, float y) { Gdx.app.log("Image ClickListener", "clicked"); } @Override […]

The post Can an Actor handle click and key down events? appeared first on BlogoSfera.


Viewing all articles
Browse latest Browse all 19

Trending Articles