Clickable and Draggable now also return booleans for whether they handled the event

This commit is contained in:
johni0702
2015-07-12 19:27:44 +02:00
parent bd21ed16ae
commit a9ded2bc1d
5 changed files with 10 additions and 6 deletions

View File

@@ -25,5 +25,5 @@ package de.johni0702.minecraft.gui.function;
import org.lwjgl.util.ReadablePoint;
public interface Clickable {
void mouseClick(ReadablePoint position, int button);
boolean mouseClick(ReadablePoint position, int button);
}

View File

@@ -25,6 +25,6 @@ package de.johni0702.minecraft.gui.function;
import org.lwjgl.util.ReadablePoint;
public interface Draggable extends Clickable {
void mouseDrag(ReadablePoint position, int button, long timeSinceLastCall);
void mouseRelease(ReadablePoint position, int button);
boolean mouseDrag(ReadablePoint position, int button, long timeSinceLastCall);
boolean mouseRelease(ReadablePoint position, int button);
}