---
title: Device Functions
slug: gpc/gpc-scripting-device-functions
description: Here is the list of Device Functions.
docTags: 
createdAt: 2022-02-02T17:06:15.000Z
---

Here we will cover a few new functions available within your code, these functions&#x20;

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

:::CodeblockTabs
GPC

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

```
:::

🔴 **Syntax**

get\_polar(stick, angle\_or\_radius);

⚪&#x20;**Parameters**

\<stick> : defined stick (POLAR\_LS or POLAR\_RS).
\<angle\_or\_radius> : POLAR\_ANGLE or POLAR\_RADIUS - the parameter you wish to get

🔵&#x20;**Returns**

Current angle or radius of an analog stick.

