public interface TouchScreen
Modifier and Type | Method and Description |
---|---|
void |
touch(float x,
float y,
int eventType,
int fingerID,
int width,
int height,
long timestamp)
Trigger the touch event of the cloud touch screen.
|
void touch(float x, float y, int eventType, int fingerID, int width, int height, long timestamp)
x
- The coordinate value x of the touch point in the rendered view.y
- The coordinate value x of the touch point in the rendered view.eventType
- 0 for press, 1 for move, 2 for lift.fingerID
- The pointer identifier associated with a particular pointer data index in this event. The
identifier tells you the actual pointer number associated with the data, accounting for individual
pointers going up and down since the start of the current gesture. You may obtain this value from
android.view.MotionEvent#getPointerId(int)
.width
- The width of the rendered view.height
- The height of the rendered view.timestamp
- The time this event occurred, in the android.os.SystemClock#uptimeMillis
time
base. You may obtain this value from android.view.MotionEvent#getEventTime()
.