Skip to content

Commit 75362fe

Browse files
committed
renamed pointer size as area
1 parent b72887d commit 75362fe

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

core/src/processing/event/TouchEvent.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public class TouchEvent extends Event {
4040
protected int[] pointerId;
4141
protected float[] pointerX;
4242
protected float[] pointerY;
43-
protected float[] pointerSize;
43+
protected float[] pointerArea;
4444
protected float[] pointerPressure;
4545

4646
public TouchEvent(Object nativeObject, long millis, int action, int modifiers,
@@ -55,16 +55,16 @@ public void setNumPointers(int n) {
5555
pointerId = new int[n];
5656
pointerX = new float[n];
5757
pointerY = new float[n];
58-
pointerSize = new float[n];
58+
pointerArea = new float[n];
5959
pointerPressure = new float[n];
6060
}
6161

6262

63-
public void setPointer(int idx, int id, float x, float y, float s, float p) {
63+
public void setPointer(int idx, int id, float x, float y, float a, float p) {
6464
pointerId[idx] = id;
6565
pointerX[idx] = x;
6666
pointerY[idx] = y;
67-
pointerSize[idx] = s;
67+
pointerArea[idx] = a;
6868
pointerPressure[idx] = p;
6969
}
7070

@@ -79,7 +79,7 @@ public Pointer getPointer(int idx) {
7979
pt.id = pointerId[idx];
8080
pt.x = pointerX[idx];
8181
pt.y = pointerY[idx];
82-
pt.size = pointerSize[idx];
82+
pt.area = pointerArea[idx];
8383
pt.pressure = pointerPressure[idx];
8484
return pt;
8585
}
@@ -100,8 +100,8 @@ public float getPointerY(int idx) {
100100
}
101101

102102

103-
public float getPointerSize(int idx) {
104-
return pointerSize[idx];
103+
public float getPointerArea(int idx) {
104+
return pointerArea[idx];
105105
}
106106

107107

@@ -126,7 +126,7 @@ public Pointer[] getTouches(Pointer[] touches) {
126126
touches[idx].id = pointerId[idx];
127127
touches[idx].x = pointerX[idx];
128128
touches[idx].y = pointerY[idx];
129-
touches[idx].size = pointerSize[idx];
129+
touches[idx].area = pointerArea[idx];
130130
touches[idx].pressure = pointerPressure[idx];
131131
}
132132
return touches;
@@ -136,7 +136,7 @@ public Pointer[] getTouches(Pointer[] touches) {
136136
public class Pointer {
137137
public int id;
138138
public float x, y;
139-
public float size;
139+
public float area;
140140
public float pressure;
141141
}
142142
}

0 commit comments

Comments
 (0)