website logo
Buy CronusGPC LibraryGamePacks (16bit)YouTubeForumsDiscord
📘Cronus Zen Guide
📗GamePacks (32bit)
📗GPC Script Guide
Navigate through spaces
⌘K
📑GPC SCRIPTING
What's New in 32bit?
Introduction
Variables
Basic GPC Structure
Definitions
Data Section
Remapping
Const Arrays
Init Section
Main Section
Combo Section
User Created Functions
Identifiers
Flow Control
Constants
Functions
Device Functions
Remapping
Advanced Samples
API Samples
Docs powered by archbee 

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

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

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

PREVIOUS
Device Functions
NEXT
Remapping
Docs powered by archbee 
TABLE OF CONTENTS
get_polar