Welcome!
Final Burn Neo => FBN Development => Topic started by: lxd_bruce 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:
-
I've solved this problem myself. :biggrin:
burner\gami.cpp
find
if (nFireButtons == 4 && (BurnDrvGetHardwareCode() & HARDWARE_PUBLIC_MASK) == HARDWARE_SNK_NEOGEO)
add following code before
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: