0

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?

30th Oct 2020, 11:07 AM
marsman
marsman - avatar
1 Answer
+ 1
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.
30th Oct 2020, 11:20 AM
marsman
marsman - avatar