Skip to content

X or Y single axis movement options with optional direction arrows#50

Open
kenloveday wants to merge 4 commits intobobboteck:masterfrom
kenloveday:master
Open

X or Y single axis movement options with optional direction arrows#50
kenloveday wants to merge 4 commits intobobboteck:masterfrom
kenloveday:master

Conversation

@kenloveday
Copy link
Copy Markdown

Added 3 joystick options:

  • axisOnlyX {Bool} - Stick only moves in the X direction (y is set to 0)
  • axisOnlyY {Bool} - Stick only moves in the Y direction (x is set to 0)
  • internalDrawArrows {Bool} - Draws X and/or Y arrows on the centre of the Stick (if axisOnlyX=true only X arrow is draw, if axisOnlyY=true only Y arrow is draw)

Added example joy-axis.html

Updated README with new (optional) parameters and put description in 'Tips & Tricks' section.

@kenloveday
Copy link
Copy Markdown
Author

This pull request is similar to the pull request by @Rubbonn but also addresses @bobboteck wish that this should have a different graphic by drawing (optional) arrows on the stick. See example joy-axis.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant