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

Rumble and haptics

Rumble and haptic actuator strengths use 0..100: 0 is off and 100 is full strength. get_rumble reads the current actuator strength, and set_rumble overrides it with a value on the same scale.

Read actuator strength

read-rumble-strength.gpc
int rumble_strength;

main {
    rumble_strength = get_rumble(RUMBLE_A);
}

Override an actuator

override-rumble-actuator.gpc
main {
    if(get_ival(PS5_CROSS)) {
        set_rumble(PS5_HAPTICS_L, 60);
    } else {
        reset_rumble();
    }
}

Block console rumble

reset_rumble() clears script overrides and returns control to the console. Explicitly reset on feature exit so a manual output cannot remain active.

Last updated