react-joystick-component
react-joystick-component copied to clipboard
Dynamic and absolute position joysticks
Is your feature request related to a problem? Please describe. There are some views where we might not want to show a joystick, but use one on-click. Describe the solution you'd like Ability to wrap a view in a joystick e.g
<Joystick wrapMode="persist">
...components
</Joystick>
wrapMode
controls how the joystick is rendered on-click:
-
persist
- the joystick stays where it is after clicking, clicking in a new place moves the joystick -
sticky
- the joystick stays where it is after clicking, clicking in a new place doesn't move the joystick -
volatile
(default) - the joystick disappears after the click ends
Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.
Additional context Add any other context or screenshots about the feature request here.