event.reset();
return consumed;
}
private boolean sendMouseWheelEvent(Vector2i pos, int wheelTurns, float delta) {
MouseWheelEvent mouseWheelEvent = new MouseWheelEvent(pos, wheelTurns, delta);
setupTarget(mouseWheelEvent);
for (EntityRef entity : getInputEntities()) {
entity.send(mouseWheelEvent);
if (mouseWheelEvent.isConsumed()) {
break;
}
}
return mouseWheelEvent.isConsumed();
}