Skip to content

Commit d51849d

Browse files
committed
renamed Pointer class
1 parent 0419158 commit d51849d

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

core/src/processing/core/PApplet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public class PApplet extends Object implements PConstants {
195195
public boolean touchPressed;
196196

197197

198-
public TouchEvent.PPointer[] touches = new TouchEvent.PPointer[0];
198+
public TouchEvent.Pointer[] touches = new TouchEvent.Pointer[0];
199199

200200

201201
/**

core/src/processing/event/TouchEvent.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ public int getNumPointers() {
7575
}
7676

7777

78-
public PPointer getPointer(int idx) {
79-
PPointer pt = new PPointer();
78+
public Pointer getPointer(int idx) {
79+
Pointer pt = new Pointer();
8080
pt.id = pointerId[idx];
8181
pt.x = pointerX[idx];
8282
pt.y = pointerY[idx];
@@ -116,11 +116,11 @@ public int getButton() {
116116
}
117117

118118

119-
public PPointer[] getTouches(PPointer[] touches) {
119+
public Pointer[] getTouches(Pointer[] touches) {
120120
if (touches == null || touches.length != numPointers) {
121-
touches = new PPointer[numPointers];
121+
touches = new Pointer[numPointers];
122122
for (int idx = 0; idx < numPointers; idx++) {
123-
touches[idx] = new PPointer();
123+
touches[idx] = new Pointer();
124124
}
125125
}
126126
for (int idx = 0; idx < numPointers; idx++) {
@@ -134,7 +134,7 @@ public PPointer[] getTouches(PPointer[] touches) {
134134
}
135135

136136

137-
public class PPointer {
137+
public class Pointer {
138138
public int id;
139139
public float x, y;
140140
public float size;

0 commit comments

Comments
 (0)