Accessible Script Requests for Disabled Users

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

Re: Accessible Script Requests for Disabled Users

Postby J2Kbr » Fri Dec 23, 2016 11:45 am

glad to hear that!! :)
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: Accessible Script Requests for Disabled Users

Postby cdanv » Sat Sep 09, 2017 2:43 pm

Hello
I'm in need of a script that causes R1 to be fired if the left hand (R3) to fully directed to the left or right side for more than 0.3 seconds. I tried the script below,
Code: Select all
main {
        if((get_val(PS3_LX) <= -100) && press_ptime(PS3_LX) >= 300){
        set_val(PS3_R1, 100);
        }
        if((get_val(PS3_LX) >= 100) && press_ptime(PS3_LX) >= 300){
        set_val(PS3_R1, 100);
        }
    }

but it did not work correctly. Can someone help?
thanks in advance :a1chill_angry1:
User avatar
cdanv
Master Sergeant
Master Sergeant
 
Posts: 29
Joined: Thu Aug 20, 2015 5:05 am

Re: Accessible Script Requests for Disabled Users

Postby J2Kbr » Tue Sep 12, 2017 6:24 pm

cdanv wrote:but it did not work correctly. Can someone help?

Definitively, this should do the trick. :joia:

Code: Select all
int time_counter;
 
main {
    if(abs(get_val(PS3_LX)) > 95) {
        if(time_counter >= 300) {
            set_val(PS3_R1, 100);
        } else {
            time_counter = time_counter + get_rtime();
        }
    } else {
        time_counter = 0;
    }
}
 
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: Accessible Script Requests for Disabled Users

Postby cdanv » Wed Sep 13, 2017 5:47 pm

J2Kbr wrote:
cdanv wrote:but it did not work correctly. Can someone help?

Definitively, this should do the trick. :joia:

Code: Select all
int time_counter;
 
main {
    if(abs(get_val(PS3_LX)) > 95) {
        if(time_counter >= 300) {
            set_val(PS3_R1, 100);
        } else {
            time_counter = time_counter + get_rtime();
        }
    } else {
        time_counter = 0;
    }
}
 


Cabei de fazer o teste deste script e está funcionando PERFEITAMENTE :smile0203: Muito obrigado novamente caro J2Kbr!
User avatar
cdanv
Master Sergeant
Master Sergeant
 
Posts: 29
Joined: Thu Aug 20, 2015 5:05 am

Re: Accessible Script Requests for Disabled Users

Postby J2Kbr » Wed Sep 20, 2017 12:21 pm

cdanv wrote:Cabei de fazer o teste deste script e está funcionando PERFEITAMENTE :smile0203: Muito obrigado novamente caro J2Kbr!

:joia: :joia:
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: Accessible Script Requests for Disabled Users

Postby cdanv » Thu Feb 02, 2023 10:21 pm

Hello, good afternoon.
I need a script that executes a combo (X button and L3 to the right) when I slide my finger on the Touch to the right and the combo (button X and L3 to the left) when I slide my finger on the Touch to the left.
It's an accessibility issue.
I thank you in advance for any help.
User avatar
cdanv
Master Sergeant
Master Sergeant
 
Posts: 29
Joined: Thu Aug 20, 2015 5:05 am

Re: Accessible Script Requests for Disabled Users

Postby WonkeyDonkey » Sat Mar 18, 2023 9:13 am

Morning,

My daughter is using the Xbox adaptive controller along with a feather light joystick & 3 switches. She has asked if it’s possible to have a function whereby the left and right analog sticks are switched by her pressing the X button 3 times. I’ve just read the post from Barrie showing it being done by pressing the menu button but wasn’t sure if this way could be done.

Many thanks
User avatar
WonkeyDonkey
Sergeant
Sergeant
 
Posts: 6
Joined: Thu Mar 16, 2023 8:19 am

Previous

Return to GPC1 Script Programming

Who is online

Users browsing this forum: No registered users and 84 guests