Home
# STICK Function

#### Purpose:

To return the x and y coordinates of two joysticks.

#### Syntax:

*x*=**STICK**(*n*)

#### Comments:

*x* is a numeric variable for storing the result.

*n* is a valid numeric expression within the range of 0 to 3.

**Value of ***n* |
**Coordinate Returned** |

0 | x coordinate of joystick A. Stores the x and y values for both joysticks for the following three function calls. |

1 | y coordinate of joystick A. |

2 | x coordinate of joystick B. |

3 | y coordinate of joystick B. |