You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The virtual joystick is cool, but gamepad / keyboard support would be better for battles. Note there is a gamepad API spec. The virtual joystick and buttons should give visual feedback that the buttons are being pressed, since connectivity with a single piece of hardware is fun enough to debug.
Gamepad API is slightly different than other browser inputs in that its not automatically evented. You need to setup a loop that checks state and possibly emit your own events.
The virtual joystick is cool, but gamepad / keyboard support would be better for battles. Note there is a gamepad API spec. The virtual joystick and buttons should give visual feedback that the buttons are being pressed, since connectivity with a single piece of hardware is fun enough to debug.
https://developer.mozilla.org/en-US/docs/Web/Guide/API/Gamepad
The text was updated successfully, but these errors were encountered: