(SOLVED)Does anybody know to bring up the mobile keyboard for javascript? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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?

18th May 2020, 1:56 AM
Nicklaus Ramirez
Nicklaus Ramirez - avatar
3 Answers
+ 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
18th May 2020, 2:03 AM
CoffeeByte
CoffeeByte - avatar
18th May 2020, 2:16 AM
CoffeeByte
CoffeeByte - avatar
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!
18th May 2020, 2:13 AM
Nicklaus Ramirez
Nicklaus Ramirez - avatar