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

Remap and unmap

remap PS5_CROSS -> PS5_SQUARE;
unmap PS5_TRIANGLE;

These are top-level compile-time declarations. Remaps are applied after main, so script logic uses original identifiers. unmap prevents an input from reaching the console output but does not prevent the script from reading it.

unmap-still-readable.gpc
unmap PS5_TRIANGLE;

main {
    if(event_press(PS5_TRIANGLE)) {
        // still visible to the script
    }
}

Device-level remapping is also available through set_remapper, with save_eeprom used only on a deliberate save event. Unlike a source remap declaration, that changes the device remapper and can persist beyond the current script. See the additional built-in reference before using it.

Last updated