LS/RS sensitivity

Gtuner IV general support. Operation, questions, updates, feature request.

LS/RS sensitivity

Postby riribibi » Wed May 05, 2021 11:02 pm

My laptop was stolen on campus and along w/ it all my T2 scripts/coding. J2K helped me originally but can someone help me w/ the LS/RS sensitivity coding?

What i had was: when i press down a paddle (P1 lets say), i could change the sensitivity of the LS based on a pre-defined value. I remember it used a "clamp" feature but definitely need help.

thanks in advance
User avatar
riribibi
Command Sergeant Major
Command Sergeant Major
 
Posts: 134
Joined: Fri Oct 31, 2014 12:33 pm

Re: LS/RS sensitivity

Postby Mad » Thu May 06, 2021 1:14 am

Sorry to hear that. Here you go:
Code: Select all
#define SENS 1.5
main {
    if(is_active(PADDLE_1)) {
        set_val(STICK_2_X, clamp(get_actual(STICK_2_X) * SENS, -100f, 100f));
        set_val(STICK_2_Y, clamp(get_actual(STICK_2_Y) * SENS, -100f, 100f));
    }
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
Mad
Major General
Major General
 
Posts: 4533
Joined: Wed May 22, 2019 5:39 am


Return to Gtuner IV Support

Who is online

Users browsing this forum: No registered users and 65 guests