> For the complete documentation index, see [llms.txt](https://guide.cronuszen.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guide.cronuszen.com/gpcscripting/gpc-script-guide/gpc-developer-guide/device-functions.md).

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

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://guide.cronuszen.com/gpcscripting/gpc-script-guide/gpc-developer-guide/device-functions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
