Combining both thumbsticks

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

Combining both thumbsticks

Postby ubermatress » Mon Sep 10, 2018 1:36 pm

Is there any way to make both PS4 thumbsticks input as the same one? For instance, both left and right input as the left one. It would be very useful for me as a disabled gamer for 2D games.
User avatar
ubermatress
Sergeant First Class
Sergeant First Class
 
Posts: 19
Joined: Tue Nov 11, 2014 4:06 pm

Re: Combining both thumbsticks

Postby J2Kbr » Tue Sep 11, 2018 6:31 am

Yes, this is perfectly possible. :smile0517:
Here is one way to achieve that:
Code: Select all
main {
    if(abs(get_val(PS4_RX)) > abs(get_val(PS4_LX))) {
        set_val(PS4_LX, get_val(PS4_RX));
    }
    if(abs(get_val(PS4_RY)) > abs(get_val(PS4_LY))) {
        set_val(PS4_LY, get_val(PS4_RY));
    }
}
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm

Re: Combining both thumbsticks

Postby ubermatress » Tue Sep 11, 2018 11:28 am

Thanks a lot, I'll give it a go!
User avatar
ubermatress
Sergeant First Class
Sergeant First Class
 
Posts: 19
Joined: Tue Nov 11, 2014 4:06 pm


Return to GPC1 Script Programming

Who is online

Users browsing this forum: Google [Bot] and 86 guests