0
Staff needed to make 4 buttons (up, down, right and left) which is called a function that simulated the keybord up,down,left and right someone can help me.
Simulate keystrokes on keyboard.
or how to make a function using this js
https://github.com/wwwtyro/Astray/blob/master/keyboard.js
In short I want to make 4 buttons for this game that then click does the same of the keyboard
Can you explain what you mean by "simulate the Keyboard"? You want me to trigger events that the browser uses?
– Sergio
I want to simulate as if I pressed the up key on the keyboard
– Adilmar Coelho Dantas
yes the code I know, I want to make a button that by clicking simulate the 38 key or keyup using js or jq.
– Adilmar Coelho Dantas
I want to simulate in this game http://wwwtyro.github.io/Astray/
– Adilmar Coelho Dantas