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
  • get_keyboard
  • get_modifiers
  • get_mk
  • set_mk

Was this helpful?

  1. Functions & Commands
  2. Keyboard Functions

Core Keyboard Functions

Function

Description

Zen

Plus

Checks if a chosen keyboard key is held down

✔️

❌

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

✔️

❌

Gets Mouse&Keyboard config value

✔️

❌

Sets Mouse&Keyboard config value

✔️

❌

get_keyboard

get_keyboard checks to see if a chosen keyboard key is pressed


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

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

get_keyboard( <key_constant> );

<key_constant> : any defined keyboard constant.

Nothing

get_modifiers

get_modifiers sets one bit of a variable based on its bit index¹ ² ³

opcode(a,5);

get_modifiers( <variable> , <bit_index> );

<variable> : any defined variable. <bit_index> : index point of the bit to be set with a range of 0 to 15.

Nothing

get_mk

Gets Mouse&Keyboard config value.

Example Coming Soon!

mk_type_identifier - Must be MK_GENERAL mk_general_identifier - Field to get information for mk_axis_identifier - Stick (X, Y or Unused)

set_mk

Sets Mouse&Keyboard config value.

Example Coming Soon!

mk_type_identifier - Must be MK_GENERAL mk_general_identifier - Field to set value for mk_value1 - Value 1 (X axis or value) mk_value2 - Value 2 (Y axis or not used??)

PreviousKeyboard FunctionsNext#1

Last updated 4 years ago

Was this helpful?

Syntax¹ ² ³

Parameters

Returns

Syntax¹ ² ³

Parameters

Returns

🔴
⚪
🔵
🔴
⚪
🔵
get_keyboard
get_modifiers
get_mk
set_mk