Handle Touch Event | Sololearn: Learn to code for FREE!


Handle Touch Event

How handle Touch Event on both segments of the screen simultaneously? I create game in pong on both player, but method onTouchEvent(MotionEvent motionEvent) can't handle both touch player. Please, help me!

11/8/2021 6:08:14 PM


1 Answer

New Answer


In java we are having events KeyEvent : when key is clicked or pressed or released MouseEvent : when mouse is clicked pressed released entered exited moved dragged WindowEvent : when window is opened closed closing activated deactivated iconified deiconified