Holding down option active ps button

GPC1 script programming for Titan One. Code examples, questions, requests.

Holding down option active ps button

Postby eXaiNReacH » Mon Apr 03, 2023 8:05 am

Can this be added to my script

Holding down option for 2 seconds, activate ps button.

:)
Attachments
Remap with PS2_Diagonals 76.gpc
(1018 Bytes) Downloaded 146 times
User avatar
eXaiNReacH
Staff Sergeant
Staff Sergeant
 
Posts: 14
Joined: Sun Dec 06, 2020 5:17 pm

Re: Holding down option active ps button

Postby eXaiNReacH » Sun Jun 09, 2024 9:25 am

Gpc1


Code: Select all
 
main {
    swap(PS4_R1, PS4_R2);
    swap(PS4_L1, PS4_L2);
    swap(PS4_SHARE, PS4_TOUCH);
 
    if((get_val(PS4_OPTIONS)) && (get_ptime(PS4_OPTIONS)) >= 2000)
        set_val(PS4_PS, 100);
    }
 
User avatar
eXaiNReacH
Staff Sergeant
Staff Sergeant
 
Posts: 14
Joined: Sun Dec 06, 2020 5:17 pm

Re: Holding down option active ps button

Postby eXaiNReacH » Fri Jun 14, 2024 7:54 am

Fast press on ps button not long press.

It loops after 5 sec


Code: Select all
 
main {
    swap(PS4_R1, PS4_R2);
    swap(PS4_L1, PS4_L2);
    swap(PS4_SHARE, PS4_TOUCH);
 
    if((get_val(PS4_OPTIONS)) && (get_ptime(PS4_OPTIONS)) >= 2000) {
        combo_run(Turbo_1);
    }
}
 
combo Turbo_1 {
    set_val(PS4_PS, 100);
    wait(40);
    set_val(PS4_PS, 0);
    wait(5000);
    set_val(PS4_PS, 0);
}
User avatar
eXaiNReacH
Staff Sergeant
Staff Sergeant
 
Posts: 14
Joined: Sun Dec 06, 2020 5:17 pm


Return to GPC1 Script Programming

Who is online

Users browsing this forum: No registered users and 25 guests