Svelte library for complex input to your app, provides Gamepad integration with the capability to show a virtual Joystick.
The virtual Joystick can either be used as fallback when a real gamepad is not connected but a touchscreen is present, as indicator of the gamepad state or to provide a virtual joystick to the user.
Also allows keyboard inputs as fallback.
See the Svelte complex input example-app for usage examples.
This library is used to reimagine the control of robotic systems but can also be useful in web game development prototyping.
This library can be installed using npm:
npm i -D svelte-gamepad-virtual-joystick
For usage examples take a look at the Svelte complex input example-app (this app does not exist yet, look at the +page.svelte-file for now) how to use the development build in your project.
based on code from
window
)TODO!
BSD-3