@Override
public Actor hit(float arg0, float arg1, boolean flag) {
return null;
}
This is the problem. By always returning null
you basically say that this actor is never hit. And it will never receive any enter, click, exit, keydown or other events.
If you want a standard bounding box test, then do this instead:
@Override
public Actor hit(float arg0, float arg1, boolean flag) {
return super.hit(arg0, arg1, flag);
}
I'd also advice you to get the sources to your code. arg0
doesn't seem to help anyhow and you also don't have any JavaDoc I suppose. Otherwise you would probably know what the hit()
method does. Because it is well documented.