public class TouchInputSupport
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
TouchInputSupport.TouchCoord |
static interface |
TouchInputSupport.TouchCountListener |
Modifier and Type | Field and Description |
---|---|
private boolean |
curIsDirect |
private int |
curModifiers |
private int |
curTouchCount |
private View |
curView |
private boolean |
filterTouchCoordinates |
private TouchInputSupport.TouchCountListener |
listener |
private java.util.Map<java.lang.Long,TouchInputSupport.TouchCoord> |
touch |
private int |
touchCount |
Constructor and Description |
---|
TouchInputSupport(TouchInputSupport.TouchCountListener listener,
boolean filterTouchCoordinates) |
Modifier and Type | Method and Description |
---|---|
private int |
filterTouchInputState(int state,
long id,
int x,
int y,
int xAbs,
int yAbs) |
int |
getTouchCount() |
void |
notifyBeginTouchEvent(View view,
int modifiers,
boolean isDirect,
int touchEventCount) |
void |
notifyEndTouchEvent(View view) |
void |
notifyNextTouchEvent(View view,
int state,
long id,
int x,
int y,
int xAbs,
int yAbs) |
private int touchCount
private boolean filterTouchCoordinates
private java.util.Map<java.lang.Long,TouchInputSupport.TouchCoord> touch
private TouchInputSupport.TouchCountListener listener
private int curTouchCount
private View curView
private int curModifiers
private boolean curIsDirect
public TouchInputSupport(TouchInputSupport.TouchCountListener listener, boolean filterTouchCoordinates)
public int getTouchCount()
public void notifyBeginTouchEvent(View view, int modifiers, boolean isDirect, int touchEventCount)
public void notifyEndTouchEvent(View view)
public void notifyNextTouchEvent(View view, int state, long id, int x, int y, int xAbs, int yAbs)
private int filterTouchInputState(int state, long id, int x, int y, int xAbs, int yAbs)