int y = (int)event.getY();\r
input.touchX[0] = x;\r
input.touchY[0] = y;\r
+\r
if (event.getAction() == MotionEvent.ACTION_DOWN) {\r
postTouchEvent(input, TouchEvent.TOUCH_DOWN, x, y, 0);\r
input.touched[0] = true;\r
- }\r
\r
- if (event.getAction() == MotionEvent.ACTION_MOVE) {\r
+ }else if (event.getAction() == MotionEvent.ACTION_MOVE) {\r
postTouchEvent(input, TouchEvent.TOUCH_DRAGGED, x, y, 0);\r
input.touched[0] = true;\r
- }\r
- if (event.getAction() == MotionEvent.ACTION_UP) {\r
+\r
+ }else if (event.getAction() == MotionEvent.ACTION_UP) {\r
postTouchEvent(input, TouchEvent.TOUCH_UP, x, y, 0);\r
input.touched[0] = false;\r
- }\r
\r
- if (event.getAction() == MotionEvent.ACTION_CANCEL) {\r
+ }else if (event.getAction() == MotionEvent.ACTION_CANCEL) {\r
postTouchEvent(input, TouchEvent.TOUCH_UP, x, y, 0);\r
input.touched[0] = false;\r
}\r