-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Interaction area controls Joystick sensitivity - problem on bigger displays / area #14
Comments
This is something I was afraid would happen, thank you very much for your report, I will be testing and will notify you as soon as I have a solution. |
If I understand this problem, it is resolved unintentionally by this example:
|
What a great workaround! Thank you! It should probably not be the "official" solution, but certainly solves it for me.. |
Yes, not really an official solution. Really need two different types of interactive areas. Maybe a new component called something like
Just thinking out loud. |
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.)
orwidth: Val::Percent(100.)
Use joystick app on larger screen, longer drag required to max range.
Compare with more standard settings:
width: Val::Px(150.)
orwidth: 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
Smartphone
Additional context
PC resoulution 1280x720 , 800x600
Samsung A71 1920x1080
Thank you!!!!
The text was updated successfully, but these errors were encountered: