@@ -40,7 +40,7 @@ public class TouchEvent extends Event {
40
40
protected int [] pointerId ;
41
41
protected float [] pointerX ;
42
42
protected float [] pointerY ;
43
- protected float [] pointerSize ;
43
+ protected float [] pointerArea ;
44
44
protected float [] pointerPressure ;
45
45
46
46
public TouchEvent (Object nativeObject , long millis , int action , int modifiers ,
@@ -55,16 +55,16 @@ public void setNumPointers(int n) {
55
55
pointerId = new int [n ];
56
56
pointerX = new float [n ];
57
57
pointerY = new float [n ];
58
- pointerSize = new float [n ];
58
+ pointerArea = new float [n ];
59
59
pointerPressure = new float [n ];
60
60
}
61
61
62
62
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 ) {
64
64
pointerId [idx ] = id ;
65
65
pointerX [idx ] = x ;
66
66
pointerY [idx ] = y ;
67
- pointerSize [idx ] = s ;
67
+ pointerArea [idx ] = a ;
68
68
pointerPressure [idx ] = p ;
69
69
}
70
70
@@ -79,7 +79,7 @@ public Pointer getPointer(int idx) {
79
79
pt .id = pointerId [idx ];
80
80
pt .x = pointerX [idx ];
81
81
pt .y = pointerY [idx ];
82
- pt .size = pointerSize [idx ];
82
+ pt .area = pointerArea [idx ];
83
83
pt .pressure = pointerPressure [idx ];
84
84
return pt ;
85
85
}
@@ -100,8 +100,8 @@ public float getPointerY(int idx) {
100
100
}
101
101
102
102
103
- public float getPointerSize (int idx ) {
104
- return pointerSize [idx ];
103
+ public float getPointerArea (int idx ) {
104
+ return pointerArea [idx ];
105
105
}
106
106
107
107
@@ -126,7 +126,7 @@ public Pointer[] getTouches(Pointer[] touches) {
126
126
touches [idx ].id = pointerId [idx ];
127
127
touches [idx ].x = pointerX [idx ];
128
128
touches [idx ].y = pointerY [idx ];
129
- touches [idx ].size = pointerSize [idx ];
129
+ touches [idx ].area = pointerArea [idx ];
130
130
touches [idx ].pressure = pointerPressure [idx ];
131
131
}
132
132
return touches ;
@@ -136,7 +136,7 @@ public Pointer[] getTouches(Pointer[] touches) {
136
136
public class Pointer {
137
137
public int id ;
138
138
public float x , y ;
139
- public float size ;
139
+ public float area ;
140
140
public float pressure ;
141
141
}
142
142
}
0 commit comments