PS4 X over gaming for Elite pad

All credits must go to original programmer KittyDawn. All I've done is add a section that cancels the problem with the P4, that triggers the share button - but not anymore with this script ;) Enjoy !
Version1.00
AuthorLumaflap
Publish DateWed, 25 May 2016 - 21:21
Last UpdateWed, 25 May 2016 - 21:21
Downloads122
RATE


1

0

Code: Select all
/*
PS4 Cross Over Gaming Script
 
This script will remap your back/select/view button to the touchpad
and enable you to still access the share screen by holding back and pressing RS/R3
 
You can also reset the timeout by holding Back/Select/View and pressing A/Cross
 
You can set a rumble notification for when the authentication is close to timing out.
 
Author: KittyDawn (Repubbed by JaggedDiamond)(adapted for Elite pad by Lumaflap)*/

 
int authcount;
int NOTIFY=3; //1=30 secs 2=1min 3=1min 30 secs and so on up to 16.
 
main{
        if(get_val(XB1_P4)) { //This section cancel the problem with P4
        set_val(PS4_SQUARE, 100);
        set_val(PS4_TOUCH, 0);
    }
    //PS4 Cross Over Gaming Section
    if(get_console()==PIO_PS4  && get_controller()!=PIO_PS4){
        authcount=ps4_authtimeout();
        swap(1,27);                     //Swap Back/Select with Touchpad Press
 
    if(get_val(27) && get_val(5)){  //Press Back/Select and press RS/R3 to press share.
            set_val(27,0);
            set_val(5,0);
            set_val(1,100);
        }       
        if(get_val(27)){             //Hold Back/Select and Press A/Cross to reset Auth Timeout.
            if(event_press(19)){
                output_reconnection();
            }
            set_val(19,0);
        }
        if(authcount <=NOTIFY+1){
            combo_run(notify);
        }
 
}
    //PS4 Cross Over Gaming Section End
}
combo notify{
    set_rumble(RUMBLE_A,100);
    set_rumble(RUMBLE_B,100);
    wait(150);
    reset_rumble();
    wait(250*authcount);
}