Script to toggle either L2 or R2
3 posts
• Page 1 of 1
Script to toggle either L2 or R2
I am looking for a script that will hold down either L2 or R2 until I press it again, a toggle switch if you will!
-
weeLz - Master Sergeant
- Posts: 26
- Joined: Fri Feb 21, 2020 2:35 am
Re: Script to toggle either L2 or R2
- Code: Select all
#include <ps4.gph>
bool L2, R2;
main {
if(event_active(PS4_L2)) L2 = !L2;
if(event_active(PS4_R2)) R2 = !R2;
if(L2) set_val(PS4_L2, 100);
if(R2) set_val(PS4_R2, 100);
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
- Mad
- Major General
- Posts: 4536
- Joined: Wed May 22, 2019 5:39 am
3 posts
• Page 1 of 1
Return to GPC2 Script Programming
Who is online
Users browsing this forum: No registered users and 83 guests