// A simple script to test rumble functionality of the controller.
//Controls:
// Hold LT/L2 for "A" rumble (Big motor)
// Hold RT/R2 for "B" rumble (Small motor)
// For best results use with a wireless controller, or a Titan One with the latest firmware as old firmware may
// have power and freezing issues when operating this over USB.
// Outdated Titan One firmware may freeze up when handling both vibration motors at the same time, and/or
// frequent starting/stopping of motor.
main {
if(get_val(XB360_LB)) { //Controller trigger list: PS3: PS3_L1, PS3_R1 | PS4: PS4_L1, PS4_R1
set_rumble(RUMBLE_A, 100); // XB360: XB360_LB, XB360_RB | XB1: XB1_LB, XB1_RB
} else {
set_rumble(RUMBLE_A, 0);
}
if(get_val(XB360_RB)) {
set_rumble(RUMBLE_B, 100);
} else {
set_rumble(RUMBLE_B, 0);
}
}