virtual_joystick
virtual_joystick copied to clipboard
Interaction area controls Joystick sensitivity - problem on bigger displays / area
The Interaction Area rectangle defines where a joystick will appear / move to on touch in Floating mode, But it also controls how far the joystick can be dragged = how sensitive it is.
The bigger the area - the more the joystick can be dragged - smaller output numbers per cm.
This is a problem on bigger screens like tablets or phones with high resolution. If you want the user to be able to touch anywhere on screen he needs to drag the joystick all the way from side to side to get full motion range.
Of course the output vec could be multiplied, but the ui is also affected, and if screen size is unknown and area rect is scaled using Percent - the output multiplier might not be suitable.
To Reproduce
Set joystick area to larger figures:
width: Val::Px(450.)
or width: Val::Percent(100.)
Use joystick app on larger screen, longer drag required to max range.
Compare with more standard settings:
width: Val::Px(150.)
or width: Val::Percent(30.)
shorter drag required to max range.
Expected behavior Interaction Area should control where the joystick will appear on touch, not sensitivity. Joystick range of motion should be fixed, controlled by another area parameter perhaps?
Desktop
- OS: Linux, native and wasm (using mouse)
- Browser Chrome and Firefox
- Version 2.1.0
Smartphone
- Device: Samsung A71
- OS: Android 12
- Browser Chrome
- Version 2.1.0
Additional context PC resoulution 1280x720 , 800x600 Samsung A71 1920x1080
Thank you!!!!