1
0
mirror of synced 2025-01-20 17:48:51 +01:00

Merge pull request #16 from Boomslangnz/master

Fixed issue with x64 not building correctly after Daytona changes
This commit is contained in:
Reaver 2018-11-07 09:31:40 +02:00 committed by GitHub
commit 02a05544db
2 changed files with 6 additions and 4 deletions

View File

@ -76,12 +76,12 @@ DWORD WINAPI XInputGetState
gamepadState.wButtons |= *ffbOffset;
else
gamepadState.wButtons |= 0;
#ifdef _M_IX86
if (GameDetect::currentGame == GameID::Daytona3)
{
gamepadState.bRightTrigger = daytonaPressStart ? 0xFF : 0x00;
}
#endif
if (pState->dwPacketNumber == UINT_MAX)
pState->dwPacketNumber = 0;
else
@ -280,11 +280,13 @@ DWORD WINAPI XInputGetStateEx
else
gamepadState.wButtons = 0;
#ifdef _M_IX86
if (GameDetect::currentGame == GameID::Daytona3)
{
gamepadState.bRightTrigger = daytonaPressStart ? 0xFF : 0x00;
}
#endif
if (pState->dwPacketNumber == UINT_MAX)
pState->dwPacketNumber = 0;
else

View File

@ -151,4 +151,4 @@ typedef struct _XINPUT_KEYSTROKE
BYTE HidCode;
} XINPUT_KEYSTROKE, *PXINPUT_KEYSTROKE;
extern bool daytonaPressStart;
extern bool daytonaPressStart;