Cronus GPC Documentation
Cronus CommunityGPC LibraryGPC Guide
  • 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
    • Zen
      • OLED
      • ASCII Constants
      • PIO
    • Keyboard
      • Keyboard
    • Controller
      • Polar
      • LED
      • Rumble
      • PS3
      • PS4
      • XBox 360
      • Xbox One
      • Nintendo WII
      • Nintendo Switch
    • Racing Wheel
      • G29
      • G27
      • G25
      • DF
      • DF GT
      • DF Pro
    • Trace
    • Memory
    • Misc
  • Flow Control
  • Persistent Memory
  • Operator Types
  • Identifiers
  • Functions & Commands
    • Internal Functions
      • Bit Functions
      • Combo Functions
      • Math Functions
      • Device Functions
      • OLED Display Functions
    • Console Functions
      • Core Console Functions
    • Controller Functions
      • Core Controller Functions
      • Rumble Functions
      • LED Functions
    • Keyboard Functions
      • Core Keyboard Functions
  • GPC Examples
    • #1
Powered by GitBook
On this page
  • Core Controller Functions
  • Rumble Functions
  • LED Functions

Was this helpful?

  1. Functions & Commands

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

Returns the current value of a controller entry

✔️

✔️

Returns the previous value of a controller entry

✔️

✔️

Returns the elapsed time of a controller entries state change

✔️

✔️

Returns the type of controller currently connected to the input port

✔️

✔️

Returns the current status of the battery for a wireless controller

✔️

✔️

Returns TRUE when a controller entry has been pressed

✔️

✔️

Returns TRUE when a controller entry has been released

✔️

✔️

Gets the input value of a button to check if it has been modified by the script.

✔️

❌

Gets the time the input value has been 0

✔️

❌

Swaps the input values to be sent to the console temporarily

✔️

✔️

locks the input from being sent to the console for the specified time

✔️

✔️

Changes the input sensitivity

✔️

✔️

Modifies the inner "deadzone", essentially pushes the starting value (when not 0) from the center by deadzone_x/deadzone_y or radius

✔️

✔️

Modifies outer deadzone, essentially forces the stick to not be further out than the radius from the inner point

✔️

✔️

Gets the gets the PS4 touchpad information

✔️

✔️

Sets the PS4 touchpad finger1 location

✔️

✔️

Turns off a wireless controller connected to the input port

✔️

✔️

Checks if the Wii remote is off-screen

✔️

✔️

Rumble Functions

Function Name

Description

Returns the current value of a Rumble Motor

Sets the speed of a Rumble Motor

Blocks any rumble signals from the console

Resets the rumble state and returns condition of the motors to the console

LED Functions

Function Name

Description

Zen

Plus

sets the state of the LED on a controller

✔️

✔️

PreviousCore Console FunctionsNextCore Controller Functions

Last updated 3 years ago

Was this helpful?

Core Controller Functions
Rumble Functions
LED Functions
set_led
get_rumble
set_rumble
block_rumble
reset_rumble
get_val
get_lval
get_ptime
get_controller
get_battery
event_press
event_release
get_ival
get_brtime
swap
block
sensitivity
deadzone
stickize
ps4_touchpad
ps4_set_touchpad
turn_off
wiir_offscreen