Greetings I want to know if the movement of the right stick is possible by code, to program a movement controlled by code. i did this but it does not work
B4X:
Dim z3 As Int=600
Dim setLeft As JavaObject = HardwareState.RunMethod("setLeft", Null)
If c1Clicked=True Then setLeft.RunMethod("setHorizontalPosition", Array(z3))
Thanks DonMandred.
I was trying things that I need and I did this and it works.
B4X:
Dim HorizontalPosition As Int = LeftStick.RunMethod("getHorizontalPosition", Null)
If c2Clicked=True Then ToastMessageShow($"RightStick Value: ${HorizontalPosition}"$, False)
but not know, if this works and take it out of here (picture)
I do not know if this will move the drone, simulating virtule controls, if they exist ....