I'm trying to detect when a Group actor (my "slot") on my stage is clicked by add an InputerListener to the group. I've added the stage to my InputMultiplexer, but when I click on the actor, nothing happens.

Relevant code from the main Screen:

InputMultiplexer inputMultiplexer = new InputMultiplexer();
Stage stage = new Stage();

From the Group class:

Label amountLabel = new Label("", GameScreen.labelStyle);
Image itemImage = new Image();
Image slotImage = new Image(new TextureRegionDrawable(new TextureRegion(new Texture("Slot.png"))));
public SlotGroup() {

    this.addListener(new InputListener() {
        public boolean touchDown(InputEvent event, float x, float y, int pointer, int button) {
            System.out.println("Hello world");
            return true;

2 Answers 2


The issue may be that the Group distributes the touch events rather than accepting them itself:

From https://libgdx.badlogicgames.com/nightlies/docs/api/

Touch events that hit more than one actor are distributed to topmost actors first.

Check whether adding the listener to a specific widget in the group will cause it to trigger instead. If so, then this is likely a design decision within the system.


The multiplexer is of no use if you just add the stage to it. You have to add "this" to the multiplexer as well, which would be your main screen. The multiplexer can take several and the order you add them in decides which gets to handle the input first.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .