if (!inputQueue.isEmpty()) {
synchronized (inputQueue) {
if (currTest == null) {
inputQueue.clear();
} else {
IViewportTransform transform = currTest.getCamera().getTransform();
while (!inputQueue.isEmpty()) {
QueueItem i = inputQueue.pop();
boolean oldFlip = transform.isYFlip();
if (mouseBehavior == MouseBehavior.FORCE_Y_FLIP) {
transform.setYFlip(true);
}
currTest.getCamera().getTransform().getScreenToWorld(i.p, i.p);
if (mouseBehavior == MouseBehavior.FORCE_Y_FLIP) {
transform.setYFlip(oldFlip);
}
switch (i.type) {
case KeyPressed:
if (i.c != KeyEvent.CHAR_UNDEFINED) {
model.getKeys()[i.c] = true;