I could use some help

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

I could use some help

Postby Unknown1745 » Fri Aug 20, 2021 10:02 pm

I am familiar with the original gpc language but GPC2 is very different. To make things simple I included a few examples in a simple script. All of these pieces of code aren't compatible with GPC2. Can someone show me how to convert these into the GPC2 language?

define ms2Default = 1200;

remap PS4_R1 -> PS4_L1;
remap PS4_L1 -> PS4_R1;

int a=FALSE;
int ms2=ms2Default;
int time_to_DblClick_S3=0;


main {

}

function start(){if(get_val(PS4_R1)){combo_run(KN);}}
User avatar
Unknown1745
Private
Private
 
Posts: 1
Joined: Fri Aug 20, 2021 9:45 pm

Re: I could use some help

Postby Mad » Fri Aug 20, 2021 10:31 pm

:smile0201:
Check out the GPC2 documentation here: https://www.consoletuner.com/wiki/index ... _scripting

Converted:
Code: Select all
#include <ps4.gph>
#include <remapper.gph>
 
#define ms2Default 1200
 
int a=FALSE;
int ms2 = ms2Default;
int time_to_DblClick_S3=0;
 
init {
    remapper_swap(PS4_R1, PS4_L1);
}
 
main { }
combo KN {}
 
void start(){if(get_val(PS4_R1)){combo_run(KN);}}
 
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
Mad
Major General
Major General
 
Posts: 4536
Joined: Wed May 22, 2019 5:39 am


Return to GPC2 Script Programming

Who is online

Users browsing this forum: No registered users and 29 guests