Controller Rumble Motor Test

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.
VersionFINAL
AuthorValant
Publish DateWed, 1 Jul 2015 - 18:10
Last UpdateWed, 1 Jul 2015 - 18:18
Downloads624
RATE


0

0

Release Notes: *CypherNova139* Wii-mote untested - probably need to edit button configs for wii-mote, XB1 not tested / no impulse trigger support. Buy me a xb1 controller? Or PM me an edited version of this, if you could add an impulse rumble toggle (within script, true/false) for xb1 controllers.
Code: Select all
// 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);
    }
 
 
}