diff --git a/.gitignore b/.gitignore index 528a5fbbbc..35b6c62675 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,14 @@ .AppleDouble ._* *~ -/build/shared/reference.zip +*.7z +*.dmg +*.gz +*.iso +*.jar +*.rar +*.tar +*.zip +.idea/ +out/ +*.iml diff --git a/core/src/processing/core/PApplet.java b/core/src/processing/core/PApplet.java index 048276d8a1..e559bf951a 100644 --- a/core/src/processing/core/PApplet.java +++ b/core/src/processing/core/PApplet.java @@ -2556,10 +2556,10 @@ public boolean isLooping() { ////////////////////////////////////////////////////////////// - InternalEventQueue eventQueue = new InternalEventQueue(); + public InternalEventQueue eventQueue = new InternalEventQueue(); - static class InternalEventQueue { + public static class InternalEventQueue { protected Event queue[] = new Event[10]; protected int offset; protected int count; @@ -2571,7 +2571,7 @@ synchronized void add(Event e) { queue[count++] = e; } - synchronized Event remove() { + synchronized public Event remove() { if (offset == count) { throw new RuntimeException("Nothing left on the event queue."); } @@ -2584,7 +2584,7 @@ synchronized Event remove() { return outgoing; } - synchronized boolean available() { + synchronized public boolean available() { return count != 0; } } diff --git a/core/src/processing/event/MouseEvent.java b/core/src/processing/event/MouseEvent.java index bde328ff33..a464e884be 100644 --- a/core/src/processing/event/MouseEvent.java +++ b/core/src/processing/event/MouseEvent.java @@ -66,12 +66,19 @@ public MouseEvent(Object nativeObject, public int getX() { return x; } + public void setX(int x){ + this.x = x; + } public int getY() { return y; } + public void setY(int y){ + this.y=y; + } + /** Which button was pressed, either LEFT, CENTER, or RIGHT. */ public int getButton() {