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

Re: Help with code edit

Postby MrBrgv » Tue Jan 28, 2025 4:03 pm

your answer is in your question, if you want it to work with out press than the logical thing would be just to remove the button.. right
User avatar
MrBrgv
Sergeant First Class
Sergeant First Class
 
Posts: 19
Joined: Sun Dec 27, 2020 9:32 pm


Return to GPC2 Script Programming

Who is online

Users browsing this forum: No registered users and 29 guests