How can i get touch input in Turtle ? | Sololearn: Learn to code for FREE!


How can i get touch input in Turtle ?

For keyboard input there is onkeypress() function. In similar way is there any way to get touch input in turtle library in python 3?

10/30/2020 11:07:44 AM


1 Answer

New Answer


I've found onscreenclick() from its documentation. Like in the func. onkeypress(fun,"Left") My object moves left.In similar way what should i use to get similar output on touching leftside/rightside of the screen ? I've tried '1' and '3' for left and right mouse button,but this didn't work for touch input.