cursorParent.addComponent(new MouseFollowerComponent());
return cursorParent;
}
private static void setUpEventListener(Component collis) {
ComponentPath path = new AbsoluteComponentPath(collis);
EventSenderComponentFilter filter = new EventSenderComponentFilter(new ComponentPathFilter(path));
EventListener listener = generateCollisionListener();
EventSystem.getInstance().registerEventListener(listener, "CollisionStarted", filter);
EventSystem.getInstance().registerEventListener(listener, "CollisionStopped", filter);