The smallest useful script
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);
}
}What each part does
Function
Purpose
get_val(PS5_L2)
Reads the current L2 value.
set_val(PS5_R1, 100)
Writes a fully pressed R1 to the outgoing report.
How it runs
Last updated

