Skip to content

Commit

Permalink
fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
rsn8887 committed Jan 11, 2018
1 parent 72860d7 commit 61c694b
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions pfba/input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ unsigned char inputP1P2Switch;

#define MAX_INPUT_inp (17)

/// www.SoftechSoftware.it
#define MAX_GAME_INPUT (6)

struct GameInput {
Expand All @@ -27,7 +26,6 @@ struct DIPInfo {
struct GameInput *DIPData;
} DIPInfo;
// Mapping of PC inputs to game inputs
/// www.SoftechSoftware.it
struct GameInput GameInput[MAX_GAME_INPUT/*4*/][MAX_INPUT_inp];
unsigned int nGameInpCount = 0;
static bool bInputOk = false;
Expand Down Expand Up @@ -66,12 +64,10 @@ int DoInputBlank(int /*bDipSwitch*/) {
DIPInfo.DIPData[i - DIPInfo.nFirstDIP].nBit = 0;
}

if ((bii.szInfo[0] == 'p') || (bii.szInfo[0] == 'm'))
{
if ((bii.szInfo[0] == 'p') || (bii.szInfo[0] == 'm')) {
if (bii.szInfo[0] == 'm') iJoyNum = 0; else iJoyNum = bii.szInfo[1] - '1';
/// www.SoftechSoftware.it
///if (iJoyNum > 3) iJoyNum = 3; // Sperimental fix
}
///if (iJoyNum > 3) iJoyNum = 3; // Sperimental fix
}
else {
if (strcmp(bii.szInfo, "diag") == 0 || strcmp(bii.szInfo, "test") == 0) {
ServiceDip = bii.pVal;
Expand Down Expand Up @@ -261,7 +257,6 @@ int InpInit() {
}
}

/// www.SoftechSoftware.it
memset(GameInput, 0, MAX_INPUT_inp * MAX_GAME_INPUT/*4*/ * sizeof(struct GameInput));
DoInputBlank(1);

Expand Down

0 comments on commit 61c694b

Please sign in to comment.