This is a processing extension for any touchscreen event. If you are using java for android development, then MotionEvent you may have used it. TouchEvent completely encapsulates all the methods in the MotionEvent event.
PS: Some of the getters and setters have been removed from set- and get- instead of blocks using the Property block.
cn.zzq.TouchEvent.aix (19.4 KB)
If you don’t understand MotionEvent, please click
You should use the AndroidViewComponent property block to set a visual component to listen to before using it.