GPC Developer Guides
...
Functions
Keyboard Functions

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