Skip to content

Commit 1831af1

Browse files
author
Mike Barkmin
committed
Fix incorrect method names
1 parent 99a7604 commit 1831af1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

resources/build.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,12 @@ source.repository=https://github.com/mikebarkmin/processing-library-scratch.git
131131
# This is used to compare different versions of the same Library, and check if
132132
# an update is available.
133133

134-
library.version=8
134+
library.version=9
135135

136136

137137
# The version as the user will see it.
138138

139-
library.prettyVersion=1.7.0
139+
library.prettyVersion=1.7.1
140140

141141

142142
# The min and max revision of Processing compatible with your Library.

src/eu/barkmin/processing/scratch/ScratchSprite.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ public ScratchSprite() {
2929
this.timer = new HashMap<>();
3030
this.timer.put("default", new Timer());
3131

32-
ScratchStage.parent.registerMethod("keyPressed", this);
33-
ScratchStage.parent.registerMethod("mouseMoved", this);
32+
ScratchStage.parent.registerMethod("keyEvent", this);
33+
ScratchStage.parent.registerMethod("mouseEvent", this);
3434
}
3535

3636
public ScratchSprite(String name, String imagePath) {
@@ -756,9 +756,9 @@ public int getDaysSince2000() {
756756
return ScratchStage.getInstance().getDaysSince2000();
757757
}
758758

759-
public void keyPressed(KeyEvent e) {}
759+
public void keyEvent(KeyEvent e) {}
760760

761-
public void mouseMoused(MouseEvent e) {}
761+
public void mouseEvent(MouseEvent e) {}
762762

763763
/**
764764
* Draws the sprite if it is not hidden.

0 commit comments

Comments
 (0)