I have posted related topics in the past but for anyone who wants to know I am coding a game controller using an Arduino Leonardo. It works pretty well. I have 4 buttons and a joystick. What I do is I have the buttons and joysticks coded to Keyboard.write a specific key such as w, a, s, d.
My problem is that for my joystick, instead of having a button to hold down a key, it just presses the key over and over again. For example, when I hold left on the joystick, it presses the same key over and over again instead of holding it down. This is a problem because my characters in game go at half the speed as they always move a little and then stop over and over again.
I guess what my question is, is that is there a command like Keyboard.write that holds down the key instead of pressing it once?
Thanks in advance