0
(SOLVED)Does anybody know to bring up the mobile keyboard for javascript?
I have this code that moves a square with the WASD controls but it seems like you cant bring up the keyboard on mobile to use WASD. So you can only move the square when your on a computer. Does anybody know a way to make this work for mobile?
3 Respostas
+ 1
for mobile the best way is using touchstart, touchmove and touchend events to move the square.
https://www.sololearn.com/discuss/2102197/?ref=app
+ 1
Nicklaus Ramirez learn more about touch events here
https://developer.mozilla.org/en-US/docs/Web/API/Touch_events
0
i didn’t use the touch events you reccomended but the link you sent me helped. all i had to do was add:
<input type="text"/>
Thank you so much for the help!