The smallest useful script
Last updated
Every GPC script needs main logic. Zen runs it repeatedly from top to bottom, once per VM cycle.
main {
if(get_val(PS5_L2)) {
set_val(PS5_R1, 100);
}
}get_val(PS5_L2)
Reads the current L2 value.
set_val(PS5_R1, 100)
Writes a fully pressed R1 to the outgoing report.
This does not create a permanent state. The condition is evaluated again on the next VM cycle.
Last updated

