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

Chords

Order-independent held chord:

main {
    if(get_ival(PS5_L2) && get_ival(PS5_OPTIONS)) {
        set_val(TRACE_1, 1);
    }
}

Chord that fires once when Options is pressed while L2 is already held:

main {
    if(get_ival(PS5_L2) && event_press(PS5_OPTIONS)) {
        set_val(TRACE_1, 1);
    }
}

If the console must not see the buttons used by a chord, block or overwrite those outputs explicitly. Chord detection only answers "did this combination occur?"; it does not suppress either button by itself.

"One cycle" refers to a single pass through main. If a chord opens a menu that remains active, suppressing its buttons only on the opening event is not enough. Route through a persistent menu_open state and call block_all_inputs() or apply the intended per-control output rules on every cycle while that exclusive mode is active.

Last updated