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

DualShock 4 lightbar

Read a console-supplied channel:

read-lightbar-channel.gpc
int console_green;

main {
    console_green = get_ps4_lbar(PS4_GREEN);
}

Override RGB:

main {
    if(get_ival(PS4_L2)) {
        set_ps4_lbar(255, 0, 0);
    }
}

Channel values are 0..255.

Last updated