Links

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.)
✔️
get_mk
Gets Mouse&Keyboard config value
✔️
set_mk
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);
}

🔴
Syntax¹ ² ³

get_keyboard( <key_constant> );

Parameters

<key_constant> : any defined keyboard constant.

🔵
Returns

Nothing

get_modifiers

get_modifiers sets one bit of a variable based on its bit index¹ ² ³
opcode(a,5);

🔴
Syntax¹ ² ³

get_modifiers( <variable> , <bit_index> );

Parameters

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

🔵
Returns

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??)