TitanONE Basic Function Script
This script is designed for DualShock 3, DualShock 4, XBOX 360, XBOX one and Wii controllers. It allow to: 1) Turn off the controller pressing the PS / XBOX / WII HOME button for 3 second 2) Chage the output mode: (PS / XBOX / WII HOME + d-pad UP) = PS3 (PS / XBOX / WII HOME + d-pad LEFT) = PS4 (PS / XBOX / WII HOME + d-pad DOWN) = XBOX 360 (PS / XBOX / WII HOME + d-pad RIGHT) = XBOX One Place it in the slot 1. It's a must have script, because with this installed in the first slot you can change the output signal of the TitanONE without the need of a PC with Gtuner PRO installed. Just press the above buttons combo to change the output. It also add a function to turn off the controller, very very usefull.
|
RATE
|
- Code: Select all
/* *
* GPC SCRIPT
This script is designed for DualShock 3, DualShock 4, XBOX 360, XBOX one and Wii controllers.
It allow to:
1) Turn off the controller pressing the PS / XBOX / WII HOME button for 3 second
2) Chage the output mode: (PS / XBOX / WII HOME + d-pad UP) = PS3
(PS / XBOX / WII HOME + d-pad LEFT) = PS4
(PS / XBOX / WII HOME + d-pad DOWN) = XBOX 360
(PS / XBOX / WII HOME + d-pad RIGHT) = XBOX One
Place it in the slot 1.
It's a must have script, because with this installed in the first slot you can change the output signal of the TitanONE without the need of a PC with Gtuner PRO installed. Just press the above buttons combo to change the output.
It also add a function to turn off the controller, very very usefull.
*/
define TURNOFF_MS = 3000; // 3000 ms = 3 seconds
main {
if(get_val(PS3_PS) || get_val(PS4_PS) || get_val(XB360_XBOX) || get_val(XB1_XBOX) || get_val(WII_HOME)) {
if(get_ptime(PS3_PS) >= TURNOFF_MS || get_ptime(PS4_PS) >= TURNOFF_MS || get_ptime(XB360_XBOX) >= TURNOFF_MS || get_ptime(XB1_XBOX) >= TURNOFF_MS || get_ptime(WII_HOME) >= TURNOFF_MS) {
turn_off();
load_slot(1);
}
}
if(event_press(PS3_PS) && event_press(PS3_UP) || event_press(PS4_PS) && event_press(PS4_UP) || event_press(XB360_XBOX) && event_press(XB360_UP) || event_press(XB1_XBOX) && event_press(XB1_UP) || event_press(WII_HOME) && event_press(WII_UP)) {
output_protocol(PIO_PS3);
}
if(event_press(PS3_PS) && event_press(PS3_LEFT) || event_press(PS4_PS) && event_press(PS4_LEFT) || event_press(XB360_XBOX) && event_press(XB360_LEFT) || event_press(XB1_XBOX) && event_press(XB1_LEFT) || event_press(WII_HOME) && event_press(WII_LEFT)) {
output_protocol(PIO_PS4);
}
if(event_press(PS3_PS) && event_press(PS3_DOWN) || event_press(PS4_PS) && event_press(PS4_DOWN) || event_press(XB360_XBOX) && event_press(XB360_DOWN) || event_press(XB1_XBOX) && event_press(XB1_DOWN) || event_press(WII_HOME) && event_press(WII_DOWN)) {
output_protocol(PIO_XB360);
}
if(event_press(PS3_PS) && event_press(PS3_RIGHT) || event_press(PS4_PS) && event_press(PS4_RIGHT) || event_press(XB360_XBOX) && event_press(XB360_RIGHT) || event_press(XB1_XBOX) && event_press(XB1_RIGHT) || event_press(WII_HOME) && event_press(WII_RIGHT)) {
output_protocol(PIO_XB1);
}
}