Help with code edit

GPC2 script programming for Titan Two. Code examples, questions, requests.

Help with code edit

Postby Beryl » Thu Dec 26, 2024 6:52 pm

Can anyone make this constant and not have to press a button to activate?

Code: Select all
#define SENSITIVITY 2.0   main { if (get_val(BUTTON_9)) { set_val(STICK_1_X, clamp(get_val(STICK_1_X) * SENSITIVITY, -100.0, 100.0)); set_val(STICK_1_Y, clamp(get_val(STICK_1_Y) * SENSITIVITY, -100.0, 100.0)); } }
User avatar
Beryl
Sergeant Major of the Army
Sergeant Major of the Army
 
Posts: 207
Joined: Fri Nov 27, 2020 7:47 pm

Re: Help with code edit

Postby Beryl » Fri Dec 27, 2024 8:24 pm

Bump
User avatar
Beryl
Sergeant Major of the Army
Sergeant Major of the Army
 
Posts: 207
Joined: Fri Nov 27, 2020 7:47 pm


Return to GPC2 Script Programming

Who is online

Users browsing this forum: No registered users and 68 guests