Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a reset or recenter function #34

Open
ebabcock1 opened this issue Mar 2, 2022 · 0 comments
Open

Provide a reset or recenter function #34

ebabcock1 opened this issue Mar 2, 2022 · 0 comments
Assignees

Comments

@ebabcock1
Copy link

While the parameter autoReturnToCenter=false is handy for preserving the joystick position, I would like the ability to force the joystick to return to center, or even to a specific position. I am using a joystick to control multiple robot joints, one at a time (as there isn't enough real estate to display multiple joysticks), and would like to restore the joystick position after switching the joint the joystick is controlling.

I would like to see a function (or more) called reset(), returnToCenter(), or setPosition(x,y) that would set the joystick to the initial (center) position or a specific position. I would call such a function when switching controls.

Since the joystick position is read-only, there is no way to change it. I could destroy the joystick and recreate it, but that seems wasteful, I could also use hidden elements for multiple joysticks, but just complicates the user interface.

@bobboteck bobboteck self-assigned this Mar 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
ISSUE Traking
  
Awaiting triage
Development

No branches or pull requests

2 participants