Device 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

get_polar gets the stick output at a given angle or radius with a high resolution value.

get_polar(POLAR_RS, POLAR_ANGLE);    //or
get_polar(POLAR_LS, POLAR_RADIUS);

Syntax

get_polar(stick, angle_or_radius);

Parameters

Parameter
Description

<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.

Last updated