There's the ClickListener
which can be attached to an Actor
and it offers events like the following ones:
public void enter(InputEvent event, float x, float y, int pointer, Actor fromActor)
public void exit(InputEvent event, float x, float y, int pointer, Actor toActor)
The enter
event basiscally means that the mouse started hovering over the actor, exit
means it "left" the area of the actor. It also has a clicked
event which you can use to execute some action in the end.