GPC Library

TURBO MODE for ALL BUTTONS

You can switch to turbo mode any button with simply : hold PS3 SELECT ( XB360 BACK) + button. INSTRUCTION :
I. ON/OFF turbo mode : hold SELECT + press button to ON/OFF turbomode for this button
/\
II. TURBO mode change the speed
/\
Increase speed D pad UP + button

Decrease speed D pad DOWN + button
/\
Added Save function for all buttons speed.
ANALOG STICK to D pad buttons - for all old games where you need to use directional buttons for movments.
Version 1.4
Author Excalibur
Publish Date 2016-02-14 18:11:11
Update Date 2017-06-18 11:55:13
Downloads 738
RATE


7

0

Release Notes: Change log : edit a little bit code to work better
Code:Select all



/*
  TURBO MODE for ALL BUTTONS 

  Author   :Excalibur
  Console  : Multy ( will work on any console with any controller )

  INSTRUCTIONS :
  ----------------------------------
 I. ON/OFF turbo mode : hold SELECT + press button to ON/OFF turbomode for this button
  ----------------------------------
 II. TURBO mode change the speed
  ----------------------------------
  Increase speed D pad UP + button

  Decrease speed D pad DOWN + button
  ----------------------------------

 III. SAVE speed to the EEPROM memory
  ----------------------------------

  hold SELECT + press START

--------------------------------------
*/

define btn3   = 3;
define btn4   = 4; 
define btn5   = 5;
define btn6   = 6; 
define btn7   = 7; 
define btn8   = 8;
 

define btn17  =17;
define btn18  =18;
define btn19  =19;
define btn20  =20;


int b3,b4,b5,b6,b7,b8,b17,b18,b19,b20;

int rest  = 20;

int onoff;
int btn[10];
int hold[10];
int index;

/////////////////////////////////////////
// ANALOG STICK to D pad buttons
define AStick_Y   = 12;  // Left Analog Y
define AStick_X   = 11;  // Left Analog X
 
define react   = 20;// when to react to Analog Stick movements
 
// INITIALIZATION
//-----------------------------------------
init {
 btn[0] =3;// R1
 btn[1] =4;// R2
 btn[2] =5;// R3
 btn[3] =6;// L1
 btn[4] =7;// L2
 btn[5] =8;// L3
 btn[6] =17;// TRIANGLE
 btn[7] =18;// CIRCLE
 btn[8] =19;// CROSS
 btn[9] =20;// SQUARE

 hold[0]  =  get_pvar(SPVAR_1, 0,600,40);//  R1
 hold[1]  =  get_pvar(SPVAR_2, 0,600,40);//  R2
 hold[2]  =  get_pvar(SPVAR_3, 0,600,40);//  R3
 hold[3]  =  get_pvar(SPVAR_4, 0,600,40);//  L1
 hold[4]  =  get_pvar(SPVAR_5, 0,600,40);//  L2
 hold[5]  =  get_pvar(SPVAR_6, 0,600,40);//  L3
 hold[6]  =  get_pvar(SPVAR_7, 0,600,40);//  TRIANGLE
 hold[7]  =  get_pvar(SPVAR_8, 0,600,40);//  CIRCLE
 hold[8]  =  get_pvar(SPVAR_9, 0,600,40);//  CROSS
 hold[17] =  get_pvar(SPVAR_10,0,600,40);//  SQUARE

}

// MAIN BLOCK
//-------------------------------------------
main {




  /////////////////////////////////
  // ON/OFF turbo mode  hold SELECT + press button to ON/OFF turbo
  //-------------------------------------------------
   if(get_val(PS3_SELECT)){
      if(event_press(btn3)) b3=!b3;    // R1
      if(event_press(btn4)) b4=!b4;    // R2
      if(event_press(btn5)) b5=!b5;    // R3
      if(event_press(btn6)) b6=!b6;    // L1
      if(event_press(btn7)) b7=!b7;    // L2
      if(event_press(btn8)) b8=!b8;    // L3


      if(event_press(btn17)) b17=!b17;// TRIANGLE
      if(event_press(btn18)) b18=!b18;// CIRCLE
      if(event_press(btn19)) b19=!b19;// CROSS
      if(event_press(btn20)) b20=!b20;// SQUARE
   }
   //------------------------------------------------

///////////////////////////////////////
// TURBO mode change the speed
//////////////////////////////////////

  /////////////////////////////////
  // Increase speed D pad UP + button
  //-------------------------------------------------
   if(get_val(PS3_UP)){
       
       index=index+1;
       if(index>9) index=0;
         if(get_val(btn[index])) {
          hold[index] = hold[index]-1;
         if(hold[index]<rest) hold[index]=rest;    
         }
       
   }
   //------------------------------------------------


  /////////////////////////////////
  // Decrease speed D pad DOWN + button
  //-------------------------------------------------
   if(get_val(PS3_DOWN)){
      index=index+1;
     if(index>9) index=0;   
    if(get_val(btn[index])) {
        hold[index] = hold[index]+1;
           
    }
  

   }
   //------------------------------------------------

//////////////////////////////////////////////
//  SAVE speed to the EEPROM memory
//////////////////////////////////////////////

    if(get_val(PS3_SELECT)){
       
       if(event_press(PS3_START)){
         set_pvar(SPVAR_1, hold[0]);//  R1
         set_pvar(SPVAR_2, hold[1]);//  R2
         set_pvar(SPVAR_3, hold[2]);//  R3
         set_pvar(SPVAR_4, hold[3]);//  L1
         set_pvar(SPVAR_5, hold[4]);//  L2
         set_pvar(SPVAR_6, hold[5]);//  L3
         set_pvar(SPVAR_7, hold[6]);//  TRIANGLE
         set_pvar(SPVAR_8, hold[7]);//  CIRCLE
         set_pvar(SPVAR_9, hold[8]);//  CROSS
         set_pvar(SPVAR_10,hold[9]);//  SQUARE

       }
     set_val(2,0);
    }


//////////////////////////////////////////////

set_val(TRACE_1,index);
set_val(TRACE_2,hold[0]);
    //index=0;
///////////////////////////////////////
// TURBO MODE ON
///////////////////////////////////////

    
     if(b3){
      if(get_val(btn3)) combo_run(TURBO3);// R1
     }

     if(b4){
      if(get_val(btn4)) combo_run(TURBO4);// R2
     }

     if(b5){
      if(get_val(btn5)) combo_run(TURBO5);// R3
     }

     if(b6){
      if(get_val(btn6)) combo_run(TURBO6);// L1
     }

     if(b7){
      if(get_val(btn7)) combo_run(TURBO7);// L2
     }

     if(b8){
      if(get_val(btn8)) combo_run(TURBO8);// L3
     }

     if(b17){
      if(get_val(btn17)) combo_run(TURBO17);// TRIANGLE
     }

     if(b18){
      if(get_val(btn18)) combo_run(TURBO18);// CIRCLE
     }

     if(b19){
      if(get_val(btn19)) combo_run(TURBO19);// CROSS
     }

     if(b20){
      if(get_val(btn20)) combo_run(TURBO20);// SQUARE
     }
///////////////////////////////////////////////////
//
// D pad buttons to  Analog Stick 
//
///////////////////////////////////////////////////
 
 
   if(get_lval(PS4_RIGHT)) { set_val(AStick_X,100);}
 
 
   if(get_lval(PS4_LEFT))  { set_val(AStick_X,-100);}
 
 
   if(get_lval(PS4_DOWN))  { set_val(AStick_Y,100);}
 
 
   if(get_lval(PS4_UP))   { set_val(AStick_Y,-100);}
 
/////////////////////////////////////////////////
//
//  INVERT X axis of Right Analog
//
/////////////////////////////////////////////////
 
   if(abs(get_val(9))>react) set_val(9, inv(get_val(9)));

///////////////////////////////////////////////////
//
// Analog Stick to D pad buttons
//
///////////////////////////////////////////////////
 
        if(get_lval(11)> react)     {  set_val(16,100);}
    //set_val(AStick_X,0);
 
        if(get_lval(11)< inv(react)){  set_val(15,100);}
    //set_val(AStick_X,0);
 
        if(get_lval(12)> react)     { set_val(14,100);}
   //set_val(AStick_Y,0);
 
        if(get_lval(12)< inv(react)){ set_val(13,100);}

}

combo TURBO3  {
   if(btn3) set_val(btn3,100);
   wait(hold[0]);
   if(btn3) set_val(btn3,0);
   wait(hold[0] -rest);

}
combo TURBO4  {
   if(btn4) set_val(btn4,100);
   wait(hold[1]);
   if(btn4) set_val(btn4,0);
   wait(hold[1] -rest);
}
combo TURBO5  {
   if(btn5) set_val(btn5,100);
   wait(hold[2]);
   if(btn5) set_val(btn5,0);
   wait(hold[2] -rest);
}
combo TURBO6  {
   if(btn6) set_val(btn6,100);
   wait(hold[3]);
   if(btn6) set_val(btn6,0);
   wait(hold[3] -rest);
}
combo TURBO7  {
   if(btn7) set_val(btn7,100);
   wait(hold[4]);
   if(btn7) set_val(btn7,0);
   wait(hold[4] -rest);
}
combo TURBO8  {
   if(btn8) set_val(btn8,100);
   wait(hold[5]);
   if(btn8) set_val(btn8,0);
   wait(hold[5] -rest);
}

combo TURBO17  {
   if(btn17) set_val(btn17,100);
   wait(hold[6]);
   if(btn17) set_val(btn17,0);
   wait(hold[6] -rest);
}
combo TURBO18  {
   if(btn18) set_val(btn18,100);
   wait(hold[7]);
   if(btn18) set_val(btn18,0);
   wait(hold[7] -rest);
}
combo TURBO19  {
   if(btn19) set_val(btn19,100);
   wait(hold[8]);
   if(btn19) set_val(btn19,0);
   wait(hold[8] -rest);
}
combo TURBO20  {
   if(btn20) set_val(btn20,100);
   wait(hold[9]);
   if(btn20) set_val(btn20,0);
   wait(hold[9] -rest);
}



  • Rating

    10 / 10 here !

    If you own a ps3 and prefer an xbox controller, or even use a keyboard and mouse, this is a must to remap your keyboard to a controller. Go buy it now you won't be disappointed !

  • Rating

    Amazing device

    If you're like me and love your PS4 controller but want to use an Xbox One GET THIS you won't be sorry.

  • Rating

    Worth every penny

    The controller feels and performs as it does on the xbox right there on my ps3, awesome job guys, and worth every penny !!!

  • Rating

    Amazing Macro combos

    tested Super Street Fighter IV Arcade Edition. I was able to perform normal & FADC combos with some characters like Ryu and Ken with a single click. Amazing.

  • Rating

    As good as a XIM

    If you are a pc gamer, that needs a pc solution for console, get yourself a ControllerMAX you will not regret it.

  • Rating

    KB & Mouse RULES!

    All I can say playing 10 minutes with ControllerMAX properly configured it felt better then PC....YES I said it even better then PC, it's that smooth.

  • Rating

    Six-Axis 360!

    WOW! I can finally get that six-axis awesomeness on my Xbox 360. The best money I ever spent.

  • Rating

    Beats all rapidfire mods

    I've tried the Intensafire, Godfather even the new Wolf controller. The ControllerMAX beats them hands down and no wires or soldering too. 5 Stars!

  • Rating

    Just perfect!

    I can't believe how much this can do for the price tag - it blew me away. Best controller upgrade ever.

  • Rating

    Hugh Thanks!

    Without your help I couldn't be playing Xbox, thanks guys.

  • Rating

    Wow!

    I have to say after reading the forums for Destiny Mouse and Keyboard setup I was flying into getting it set up in 20 minutes. It works outstanding! I'm more then satisfied and its worth every penny!

  • Rating

    Achievement Unlocked!

    Idle boosting Complete 150 Multiplayer games, James Cameron's Avatar. My friend said it would be hard, I laughed then linked him.

  • Rating

    A++!

    Now this is a company you can count on and trust...keep up the great work guys!

  • Rating

    What Disability?

    I would like to thank you for making the CronusMax. I have this problem hitting L3 and R3, and today that problem was fixed. I love the remap feature on the Cronus max. You made my life easier.

  • Rating

    Awesome stuff guys!

    Playing Forza 5 with my original MS 360 wireless wheel makes the XB1 complete for me, thanks to the CronusMax. Thumbs up!