Device Functions
Here we will cover a few new functions available within your code, these functions
Function | Description |
---|---|
get_polar | Gets the stick output at a given angle or radius with a high-resolution value. |
get_ipolar | Gets the unmodified stick output at a given angle or radius with a high-resolution value. |
POLAR_LS | Allows you to get a Angle or Radius for LEFT STICK. |
POLAR_RS | Allows you to get a Angle or Radius for RIGHT STICK. |
POLAR_ANGLE | You can get the angle from 0 to 359. |
POLAR_RADIUS | You can get the radius from -32 768 to +32 767. |
get_polar gets the stick output at a given angle or radius with a high-resolution value.
🔴 Syntax
get_polar(stick, angle_or_radius);
⚪ Parameters
<stick> : defined stick (POLAR_LS or POLAR_RS). <angle_or_radius> : POLAR_ANGLE or POLAR_RADIUS - the parameter you wish to get
🔵 Returns
Current angle or radius of an analog stick.