MotionEventCompat.java
5.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
package android.support.v4.view;
import android.os.Build.VERSION;
import android.view.MotionEvent;
public final class MotionEventCompat
{
public static final int ACTION_HOVER_ENTER = 9;
public static final int ACTION_HOVER_EXIT = 10;
public static final int ACTION_HOVER_MOVE = 7;
public static final int ACTION_MASK = 255;
public static final int ACTION_POINTER_DOWN = 5;
public static final int ACTION_POINTER_INDEX_MASK = 65280;
public static final int ACTION_POINTER_INDEX_SHIFT = 8;
public static final int ACTION_POINTER_UP = 6;
public static final int ACTION_SCROLL = 8;
public static final int AXIS_BRAKE = 23;
public static final int AXIS_DISTANCE = 24;
public static final int AXIS_GAS = 22;
public static final int AXIS_GENERIC_1 = 32;
public static final int AXIS_GENERIC_10 = 41;
public static final int AXIS_GENERIC_11 = 42;
public static final int AXIS_GENERIC_12 = 43;
public static final int AXIS_GENERIC_13 = 44;
public static final int AXIS_GENERIC_14 = 45;
public static final int AXIS_GENERIC_15 = 46;
public static final int AXIS_GENERIC_16 = 47;
public static final int AXIS_GENERIC_2 = 33;
public static final int AXIS_GENERIC_3 = 34;
public static final int AXIS_GENERIC_4 = 35;
public static final int AXIS_GENERIC_5 = 36;
public static final int AXIS_GENERIC_6 = 37;
public static final int AXIS_GENERIC_7 = 38;
public static final int AXIS_GENERIC_8 = 39;
public static final int AXIS_GENERIC_9 = 40;
public static final int AXIS_HAT_X = 15;
public static final int AXIS_HAT_Y = 16;
public static final int AXIS_HSCROLL = 10;
public static final int AXIS_LTRIGGER = 17;
public static final int AXIS_ORIENTATION = 8;
public static final int AXIS_PRESSURE = 2;
public static final int AXIS_RELATIVE_X = 27;
public static final int AXIS_RELATIVE_Y = 28;
public static final int AXIS_RTRIGGER = 18;
public static final int AXIS_RUDDER = 20;
public static final int AXIS_RX = 12;
public static final int AXIS_RY = 13;
public static final int AXIS_RZ = 14;
public static final int AXIS_SIZE = 3;
public static final int AXIS_THROTTLE = 19;
public static final int AXIS_TILT = 25;
public static final int AXIS_TOOL_MAJOR = 6;
public static final int AXIS_TOOL_MINOR = 7;
public static final int AXIS_TOUCH_MAJOR = 4;
public static final int AXIS_TOUCH_MINOR = 5;
public static final int AXIS_VSCROLL = 9;
public static final int AXIS_WHEEL = 21;
public static final int AXIS_X = 0;
public static final int AXIS_Y = 1;
public static final int AXIS_Z = 11;
public static final int BUTTON_PRIMARY = 1;
static final d a = new a();
static
{
if (Build.VERSION.SDK_INT >= 14)
{
a = new c();
return;
}
if (Build.VERSION.SDK_INT >= 12)
{
a = new b();
return;
}
}
@Deprecated
public static int findPointerIndex(MotionEvent paramMotionEvent, int paramInt)
{
return paramMotionEvent.findPointerIndex(paramInt);
}
public static int getActionIndex(MotionEvent paramMotionEvent)
{
return (paramMotionEvent.getAction() & 0xFF00) >> 8;
}
public static int getActionMasked(MotionEvent paramMotionEvent)
{
return paramMotionEvent.getAction() & 0xFF;
}
public static float getAxisValue(MotionEvent paramMotionEvent, int paramInt)
{
return a.a(paramMotionEvent, paramInt);
}
public static float getAxisValue(MotionEvent paramMotionEvent, int paramInt1, int paramInt2)
{
return a.a(paramMotionEvent, paramInt1, paramInt2);
}
public static int getButtonState(MotionEvent paramMotionEvent)
{
return a.a(paramMotionEvent);
}
@Deprecated
public static int getPointerCount(MotionEvent paramMotionEvent)
{
return paramMotionEvent.getPointerCount();
}
@Deprecated
public static int getPointerId(MotionEvent paramMotionEvent, int paramInt)
{
return paramMotionEvent.getPointerId(paramInt);
}
@Deprecated
public static int getSource(MotionEvent paramMotionEvent)
{
return paramMotionEvent.getSource();
}
@Deprecated
public static float getX(MotionEvent paramMotionEvent, int paramInt)
{
return paramMotionEvent.getX(paramInt);
}
@Deprecated
public static float getY(MotionEvent paramMotionEvent, int paramInt)
{
return paramMotionEvent.getY(paramInt);
}
public static boolean isFromSource(MotionEvent paramMotionEvent, int paramInt)
{
return (paramMotionEvent.getSource() & paramInt) == paramInt;
}
static class a
implements MotionEventCompat.d
{
public float a(MotionEvent paramMotionEvent, int paramInt)
{
return 0.0F;
}
public float a(MotionEvent paramMotionEvent, int paramInt1, int paramInt2)
{
return 0.0F;
}
public int a(MotionEvent paramMotionEvent)
{
return 0;
}
}
static class b
extends MotionEventCompat.a
{
public final float a(MotionEvent paramMotionEvent, int paramInt)
{
return paramMotionEvent.getAxisValue(paramInt);
}
public final float a(MotionEvent paramMotionEvent, int paramInt1, int paramInt2)
{
return paramMotionEvent.getAxisValue(paramInt1, paramInt2);
}
}
static final class c
extends MotionEventCompat.b
{
public final int a(MotionEvent paramMotionEvent)
{
return paramMotionEvent.getButtonState();
}
}
static abstract interface d
{
public abstract float a(MotionEvent paramMotionEvent, int paramInt);
public abstract float a(MotionEvent paramMotionEvent, int paramInt1, int paramInt2);
public abstract int a(MotionEvent paramMotionEvent);
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/android/support/v4/view/MotionEventCompat.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/