Author Topic: Hot keys for cps games  (Read 4467 times)

Offline lxd_bruce

  • Jr. Member
  • **
  • Posts: 75
  • Karma: +1/-0
Hot keys for cps games
« on: May 15, 2007, 08:56:23 AM »
suppose
A represents "Weak Punch"
B represents "Medium Punch"
C represents "Strong Punch"
D represents "Weak Kick"
E represents "Medium Kick"
F represents "Strong Kick"


I wanna add Hot keys such as A+D, B+E, C+F, How to make it? :confused:

Offline lxd_bruce

  • Jr. Member
  • **
  • Posts: 75
  • Karma: +1/-0
Re: Hot keys for cps games
« Reply #1 on: July 15, 2007, 11:54:33 AM »
I've solved this problem myself. :biggrin:

burner\gami.cpp

find

Code: [Select]
if (nFireButtons == 4 && (BurnDrvGetHardwareCode() & HARDWARE_PUBLIC_MASK) == HARDWARE_SNK_NEOGEO)
add following code before

Code: [Select]
if (nFireButtons > 5) {

// Create A1+B1 macro
pgi->nInput = GIT_MACRO_AUTO;
pgi->nType = BIT_DIGITAL;
pgi->Macro.nMode = 0;

sprintf(pgi->Macro.szName, "P%i A1+B1", nPlayer + 1);
                        BurnDrvGetInputInfo(&bii, nPunchInputs[nPlayer][0]);
                        pgi->Macro.pVal[0] = bii.pVal;
                        pgi->Macro.nVal[0] = 1;
                        BurnDrvGetInputInfo(&bii, nKickInputs[nPlayer][0]);
                        pgi->Macro.pVal[1] = bii.pVal;
                        pgi->Macro.nVal[1] = 1;

nMacroCount++;
pgi++;

// Create A2+B2 macro

pgi->nInput = GIT_MACRO_AUTO;
pgi->nType = BIT_DIGITAL;
pgi->Macro.nMode = 0;

sprintf(pgi->Macro.szName, "P%i A2+B2", nPlayer + 1);
                        BurnDrvGetInputInfo(&bii, nPunchInputs[nPlayer][1]);
                        pgi->Macro.pVal[0] = bii.pVal;
                        pgi->Macro.nVal[0] = 1;
                        BurnDrvGetInputInfo(&bii, nKickInputs[nPlayer][1]);
                        pgi->Macro.pVal[1] = bii.pVal;
                        pgi->Macro.nVal[1] = 1;

nMacroCount++;
pgi++;



// Create A3+B3 macro

pgi->nInput = GIT_MACRO_AUTO;
pgi->nType = BIT_DIGITAL;
pgi->Macro.nMode = 0;

sprintf(pgi->Macro.szName, "P%i A3+B3", nPlayer + 1);
                        BurnDrvGetInputInfo(&bii, nPunchInputs[nPlayer][2]);
                        pgi->Macro.pVal[0] = bii.pVal;
                        pgi->Macro.nVal[0] = 1;
                        BurnDrvGetInputInfo(&bii, nKickInputs[nPlayer][2]);
                        pgi->Macro.pVal[1] = bii.pVal;
                        pgi->Macro.nVal[1] = 1;

nMacroCount++;
pgi++;
}

Although maybe a lot of people know this, I still wanna make it clear for beginners like me.  :smilie:
« Last Edit: July 15, 2007, 11:58:16 AM by lxd_bruce »