use of org.terasology.rendering.nui.events.NUIMouseReleaseEvent in project Terasology by MovingBlocks.
the class CanvasImpl method processMouseRelease.
@Override
public boolean processMouseRelease(MouseInput button, Vector2i pos) {
if (clickedRegion != null) {
Vector2i relPos = new Vector2i(pos);
relPos.sub(clickedRegion.region.min());
clickedRegion.listener.onMouseRelease(new NUIMouseReleaseEvent(mouse, keyboard, relPos, button));
clickedRegion = null;
return true;
}
return false;
}
Aggregations