It gets confused because the controller cant distinguishes between the values of both joysticks, so it’s like giving 2 values to both joysticks.
If you run the project on android and use both joysticks, you will know what I mean as it is kinda tricky to explain.
Thanks for the info @yaustar ,
I m now shifting my left joystick to the logic that is used in the project above by @Leonidas , while keeping my right joystick the same (using pc.ElementDragHelper). I think it will do the task.
@Leonidas can you pls look at the project that you provide link below, there are no boundaries for joystick base, you can drag on any part of the screen, I have been trying to resolve this issue but so far I limited the X-axis, but on Y axis the issue is still. I m making changes in virtualJoyStick Script where I am getting the XY axis value.