diff --git a/resources/build.properties b/resources/build.properties index ac8741b1..e191381a 100644 --- a/resources/build.properties +++ b/resources/build.properties @@ -131,12 +131,12 @@ source.repository=https://github.com/mikebarkmin/processing-library-scratch.git # This is used to compare different versions of the same Library, and check if # an update is available. -library.version=8 +library.version=9 # The version as the user will see it. -library.prettyVersion=1.7.0 +library.prettyVersion=1.7.1 # The min and max revision of Processing compatible with your Library. diff --git a/src/eu/barkmin/processing/scratch/ScratchSprite.java b/src/eu/barkmin/processing/scratch/ScratchSprite.java index 7c061239..89ef8cc2 100644 --- a/src/eu/barkmin/processing/scratch/ScratchSprite.java +++ b/src/eu/barkmin/processing/scratch/ScratchSprite.java @@ -29,8 +29,8 @@ public ScratchSprite() { this.timer = new HashMap<>(); this.timer.put("default", new Timer()); - ScratchStage.parent.registerMethod("keyPressed", this); - ScratchStage.parent.registerMethod("mouseMoved", this); + ScratchStage.parent.registerMethod("keyEvent", this); + ScratchStage.parent.registerMethod("mouseEvent", this); } public ScratchSprite(String name, String imagePath) { @@ -756,9 +756,9 @@ public int getDaysSince2000() { return ScratchStage.getInstance().getDaysSince2000(); } - public void keyPressed(KeyEvent e) {} + public void keyEvent(KeyEvent e) {} - public void mouseMoused(MouseEvent e) {} + public void mouseEvent(MouseEvent e) {} /** * Draws the sprite if it is not hidden.