RodrigoDornelles / npm-gamepadzilla

A plug-and-play gamepad frontend framework for HTML5 mobile games, supporting both virtual and physical joysticks. No scripting required.
https://rodrigodornelles.github.io/npm-gamepadzilla/
GNU Affero General Public License v3.0
42 stars 3 forks source link

feat: configure joystick size with `data-gpz-radius` and `data-gpz-range` #8

Open RodrigoDornelles opened 12 months ago

RodrigoDornelles commented 12 months ago

support sizes like css with at least the main variations.

data-gpz-radius

border of joystick size

RodrigoDornelles commented 12 months ago

perhaps it might be interesting to data-gpz-size-1 data-gpz-size-2... to maintain polymorphism with other classes and simplify documentation.