private static void fireUpEvents(int screenX, int screenY, boolean altPressed, boolean ctrlPressed,
boolean shiftPressed, boolean metaPressed) {
long stamp = System.currentTimeMillis();
for (MouseDownEventLog log : pointerDownEvents) {
MouseUpEventArgs args = new MouseUpEventArgs(screenX, screenY, screenX - log.getScreenX(),
screenY - log.getScreenY(), altPressed, ctrlPressed, shiftPressed, metaPressed, log.getComponent());
log.getComponent().onMouseUp.fireEvent(args);
if (stamp - log.getTimeStamp() < 500) {
log.getComponent().onClick.fireEvent(new ClickEventArgs(screenX, screenY, log.getX(), log.getY(),
altPressed, ctrlPressed, shiftPressed, metaPressed, log.getComponent()));