// If an enter/exit event, then note the Entity we are entering or
// exiting and repost the event.
if (event instanceof EnterExitEvent) {
if (((EnterExitEvent)event).isEnter() == true) {
enterEntity = entity;
inputManager.postEvent(new EnterExitEvent(entity, true));
}
else {
Entity eventEntity = enterEntity;
enterEntity = null;
inputManager.postEvent(new EnterExitEvent(eventEntity, false));