![JAR search and dependency download from the Maven repository](/logo.png)
de.lessvoid.coregl.input.PendingEventQueue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of coregl-utils Show documentation
Show all versions of coregl-utils Show documentation
simple utility methods to make life with OpenGL core profile simpler
The newest version!
package de.lessvoid.coregl.input;
import java.util.Queue;
import java.util.concurrent.ConcurrentLinkedQueue;
import de.lessvoid.coregl.input.spi.CoreInput;
import de.lessvoid.coregl.input.spi.CoreInputEvent;
public class PendingEventQueue {
private final Queue eventQueue = new ConcurrentLinkedQueue();
private final CoreInput input;
public PendingEventQueue(final CoreInput input) {
this.input = input;
}
public void flush() {
while (eventQueue.size() > 0) {
input.fireEvent(eventQueue.poll());
}
}
public void enqueue(final CoreInputEvent event) {
eventQueue.offer(event);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy