0 for x corresponds to the joystick tilted all the way to the left while 100 corresponds to the joystick stick tilted all the way to the right.
0 for y corresponds to the joystick tilted all the way down while 100 corresponds to the joystick stick tilted all the way forward.
What ports can I use it on?
1,7
Code
var xMovement =Magic.modules.joystick.x;
usingMagic;publicclassDemo:MonoBehaviour{ // create a reference to the modulepublicMagic.Modules.JoystickModule joystick;voidStart() { }voidUpdate() { // access the property of the moduleint xMovement =joystick.x;int yMovement =joystick.y; }}