You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: