I need help with writing a linking script

Titan One general support. Questions, firmware update, feature request.

I need help with writing a linking script

Postby vivekg » Sun Feb 17, 2019 7:00 pm

I'm new to GPC and help to write a script + linking them

I'm using the Titan 1 to allow me to use a PS4 Controller on XBOX ONE X

I want to link the following scripts ->

Can you make the script work without needing to reauthorize ?[/b]

Below is a script allowing you to swipe the left and right PS4 Touchpad as the XBOX1 VIEW/menu buttons

Code: Select all
//-------THIS SECTION IS FOR WHEN USING DUAL SHOCK 4 ON ANY SYSTEM------//
if (get_console() != PIO_PS4 && get_controller() == PIO_PS4) {          //
    if (get_val(PS4_TOUCHX) < 0 && get_val(27)) {                       //
        block (27,500);                                                 //
        set_val(1,100);                                                 //
        }                                                               //
    if (get_val(PS4_TOUCHX) > 0 && get_val(27)) {                       //
        block (27,500);                                                 //
        set_val(2,100);                                                 //
        }                                                               //
    }
 

And THIS SCRIPT ->
 
Code: Select all
remap XB1_LB -> PS4_R1;
remap XB1_RB -> PS4_R2;
remap XB1_RT -> PS4_L1;
 
 
 
main {
}
 
 

PLEASE help me!
User avatar
vivekg
Staff Sergeant
Staff Sergeant
 
Posts: 11
Joined: Sun Feb 17, 2019 6:32 pm

Re: I need help with writing a linking script

Postby J2Kbr » Mon Feb 18, 2019 5:29 pm

Welcome to our forums. :smile0517:
Scripts combined into one:
Code: Select all
remap XB1_LB -> PS4_R1;
remap XB1_RB -> PS4_R2;
remap XB1_RT -> PS4_L1;
 
main {
    //-------THIS SECTION IS FOR WHEN USING DUAL SHOCK 4 ON ANY SYSTEM------//
    if (get_console() != PIO_PS4 && get_controller() == PIO_PS4) {          //
        if (get_val(PS4_TOUCHX) < 0 && get_val(27)) {                       //
            block (27,500);                                                 //
            set_val(1,100);                                                 //
            }                                                               //
        if (get_val(PS4_TOUCHX) > 0 && get_val(27)) {                       //
            block (27,500);                                                 //
            set_val(2,100);                                                 //
            }                                                               //
    }
 }
 
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm


Return to Titan One Device

Who is online

Users browsing this forum: No registered users and 123 guests