To set the movement amount of the control stick in the vertical position (verticalPosition). The range is [-660,660]. When the control stick moves vertically to extreme left, the value of verticalPosition is -660. When the control stick moves vertically to extreme right, the value of verticalPosition is 660.
Input Parameters:
int position
The movement amount of the stick in vertical direction.
To get the movement amount of the control stick in the vertical position (verticalPosition). The range is [-660,660]. When the control stick moves vertically to extreme left, the value of verticalPosition is -660. When the control stick moves vertically to extreme right, the value of verticalPosition is 660.
Return:
int
The movement amount of the stick in vertical direction.
To set the movement amount of the control stick in the horizontal position (horizontalPosition). The range is [-660,660]. When the control stick move horizontally to extreme left, the value of verticalPosition is -660. When the control stick move horizontally to extreme right, the value of horizontalPosition is 660.
Input Parameters:
int position
The movement amount of the stick in horizontal direction.
To get the movement of the control stick in the horizontal position (horizontalPosition). The range is [-660,660]. When the control stick move horizontally to extreme left, the value of verticalPosition is -660. When the control stick move horizontally to extreme right, the value of horizontalPosition is 660.
Return:
int
The movement amount of the stick in horizontal direction.