website logo
Buy CronusGPC LibraryGamePacks (16bit)YouTubeForumsDiscord
📘Cronus Zen Guide
📗GamePacks (32bit)
📗GPC Script Guide
Navigate through spaces
📘Cronus Zen Guide
📗GamePacks (32bit)
📗GPC Script Guide
⌘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 

Core Keyboard Functions

Function

Description

get_keyboard

Checks if a chosen keyboard key is held down

get_modifiers

Checks if a chosen keyboard modifier is held down (ALT, SHIFT, CTRL, etc.)

get_keyboard

get_keyboard checks to see if a chosen keyboard key is pressed

GPC
|
main {
if(get_keyboard(KEY_A)){
    combo_run(jump);
    }
}

combo jump {
    wait(20);
    set_val(XB1_A, 100);
    wait(20);
}


🔴 Syntax

get_keyboard( <key_constant> );

⚪ Parameters

<key_constant> : any defined keyboard constant.

🔵 Returns

Nothing

get_modifiers

get_modifiers Checks if a chosen keyboard modifier is held down (ALT, SHIFT, CTRL, etc.)

GPC
|
if (get_modifiers(MOD_LCTRL | MOD_LALT) == MOD_LCTRL | MOD_LALT) { /* Both Left Alt and Left Ctrl are pressed */ }


🔴 Syntax

get_modifiers( <variable> , <bit_index> );

⚪ Parameters

<variable> : any defined variable. <bit_index> : index point of the bit to IF held

🔵 Returns

Nothing

UP NEXT
Device Functions
Docs powered by archbee 
TABLE OF CONTENTS
get_keyboard
get_modifiers