I want to press left, right, up, or down based on the swipe direction. Is there any way I can tell my code to press the left arrow key based on an if statement?
Asked
Active
Viewed 29 times
0
-
Does this answer your question? [Is it possible to simulate key press events programmatically?](https://stackoverflow.com/questions/596481/is-it-possible-to-simulate-key-press-events-programmatically) – evolutionxbox Jul 20 '21 at 20:55