Cronus GPC Documentation
Cronus Community
GPC Library
GPC Guide
Search…
Welcome
Introduction
GPC Explained
What's New with Zen?
Basic Syntax
A Simple Tutorial
Style Guide
GPC Structure
Basic GPC Structure
Definitions
Data Section
Remapping
Variables
Init Section
Main Section
Combo Section
User Created Functions
GPC Programming Basics
Constants
Flow Control
Persistent Memory
Operator Types
Identifiers
Functions & Commands
Internal Functions
Console Functions
Controller Functions
Core Controller Functions
Rumble Functions
LED Functions
Keyboard Functions
GPC Examples
#1
Powered By
GitBook
Controller Functions
A controller is an input device, however, the Cronus Zen also sends data to control the rumble motors and LEDs.
Core Controller Functions
Function Name
Description
Zen
Plus
get_val
Returns the current value of a controller entry
✔️
✔️
get_lval
Returns the previous value of a controller entry
✔️
✔️
get_ptime
Returns the elapsed time of a controller entries state change
✔️
✔️
get_controller
Returns the type of controller currently connected to the input port
✔️
✔️
get_battery
Returns the current status of the battery for a wireless controller
✔️
✔️
event_press
Returns TRUE when a controller entry has been pressed
✔️
✔️
event_release
Returns TRUE when a controller entry has been released
✔️
✔️
get_ival
Gets the input value of a button to check if it has been modified by the script.
✔️
❌
get_brtime
Gets the time the input value has been 0
✔️
❌
swap
Swaps the input values to be sent to the console temporarily
✔️
✔️
block
locks the input from being sent to the console for the specified time
✔️
✔️
sensitivity
Changes the input sensitivity
✔️
✔️
deadzone
Modifies the inner "deadzone", essentially pushes the starting value (when not 0) from the center by deadzone_x/deadzone_y or radius
✔️
✔️
stickize
Modifies outer deadzone, essentially forces the stick to not be further out than the radius from the inner point
✔️
✔️
ps4_touchpad
Gets the gets the PS4 touchpad information
✔️
✔️
ps4_set_touchpad
Sets the PS4 touchpad finger1 location
✔️
✔️
turn_off
Turns off a wireless controller connected to the input port
✔️
✔️
wiir_offscreen
Checks if the Wii remote is off-screen
✔️
✔️
Core Controller Functions
Rumble Functions
Function Name
Description
get_rumble
Returns the current value of a Rumble Motor
set_rumble
Sets the speed of a Rumble Motor
block_rumble
Blocks any rumble signals from the console
reset_rumble
Resets the rumble state and returns condition of the motors to the console
Rumble Functions
LED Functions
Function Name
Description
Zen
Plus
set_led
sets the state of the LED on a controller
✔️
✔️
LED Functions
Previous
Core Console Functions
Next
Core Controller Functions
Last modified
6mo ago
Copy link
Outline
Core Controller Functions
Rumble Functions
LED Functions