For the complete documentation index, see llms.txt. This page is also available as Markdown.

Keyboard input

keyboard-input.gpc
main {
    if(get_keyboard(KEY_SPACE)) {
        set_val(PS5_CROSS, 100);
    }

    if(get_modifiers(MOD_LCTRL | MOD_LALT) == (MOD_LCTRL | MOD_LALT)) {
        set_val(TRACE_1, 1);
    }
}

get_modifiers(mask) returns the active subset of the requested mask. Compare the result to the full requested mask when every modifier is required.

Last updated