Stick Control : how to work with position of the joystick ?
in
Integration and Hardware
•
7 months ago
Hi Peter,
with stick control,is it possible to know and work with X,Y coordinates of the joystick ?
Thanks for your help.
I found !
I used this code to kown the exact position of the joystick :
void mouseDragged (){
int posx = mouseX;
int posy = mouseY;
println(posx +" "+ posy); // to see the value
//to do something with posx and posy
}
with stick control,is it possible to know and work with X,Y coordinates of the joystick ?
Thanks for your help.
I found !
I used this code to kown the exact position of the joystick :
void mouseDragged (){
int posx = mouseX;
int posy = mouseY;
println(posx +" "+ posy); // to see the value
//to do something with posx and posy
}
1