[Lemur] CursorListener, it is ok to use target if capture is null?

like at
public void cursorButtonEvent( CursorButtonEvent event, Spatial target, Spatial capture );

sometimes capture is null,
is there some practical example demonstrating when to chose between them and the effects of such choices?

I read here already. The explanations looks very clear but I am still having trouble to grasp it.

If you don’t have a capture then that just means the button down event never happened over another spatial… or if it did, that spatial never consumed the event. So there is no capture.

Target is the spatial that is currently receiving the event. The one to which this listener is attached in some way.

When to use one or the other depends entirely on what you want to do.

2 Likes