Skip to content

Commit

Permalink
Fix incorrect method names
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Barkmin committed Aug 10, 2019
1 parent 99a7604 commit 1831af1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions resources/build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 4 additions & 4 deletions src/eu/barkmin/processing/scratch/ScratchSprite.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 1831af1

Please sign in to comment.