bobboteck / JoyStick

A simple JoyStick that use HTML5, Canvas and Vanilla JavaScript, for touch and mouse interfaces (no JQuery required), preview at:
https://bobboteck.github.io/joy/joy.html
MIT License
355 stars 96 forks source link

Options to select a single axis for the joystick #24

Open Rubbonn opened 3 years ago

Rubbonn commented 3 years ago

Fix: #23

I just added an option "axis" which can be "x", "y" or false (default). This way you can choose if the joystick must be on single axis or both.

I don't know how you minified the js so i'll leave this task to you.

cauafroes commented 2 years ago

underrated pull request. really useful param

bobboteck commented 2 years ago

I am considering what solution to take, I would also like to create a different graphic