From 11bfe52e68a9e86afae75a11bff6d77bd13af443 Mon Sep 17 00:00:00 2001 From: Boomslangnz Date: Tue, 6 Nov 2018 23:02:11 +1300 Subject: [PATCH] Fixed x64 not building correctly --- OpenParrot/src/Functions/PokkenXInputEmu.cpp | 8 +++++--- OpenParrot/src/Functions/PokkenXInputEmu.h | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/OpenParrot/src/Functions/PokkenXInputEmu.cpp b/OpenParrot/src/Functions/PokkenXInputEmu.cpp index 4268566..ea652b8 100644 --- a/OpenParrot/src/Functions/PokkenXInputEmu.cpp +++ b/OpenParrot/src/Functions/PokkenXInputEmu.cpp @@ -76,12 +76,12 @@ DWORD WINAPI XInputGetState gamepadState.wButtons |= *ffbOffset; else gamepadState.wButtons |= 0; - +#ifndef _M_AMD64 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; +#ifndef _M_AMD64 if (GameDetect::currentGame == GameID::Daytona3) { gamepadState.bRightTrigger = daytonaPressStart ? 0xFF : 0x00; } - +#endif + if (pState->dwPacketNumber == UINT_MAX) pState->dwPacketNumber = 0; else diff --git a/OpenParrot/src/Functions/PokkenXInputEmu.h b/OpenParrot/src/Functions/PokkenXInputEmu.h index b70b944..03fe014 100644 --- a/OpenParrot/src/Functions/PokkenXInputEmu.h +++ b/OpenParrot/src/Functions/PokkenXInputEmu.h @@ -151,4 +151,4 @@ typedef struct _XINPUT_KEYSTROKE BYTE HidCode; } XINPUT_KEYSTROKE, *PXINPUT_KEYSTROKE; -extern bool daytonaPressStart; \ No newline at end of file +extern bool daytonaPressStart;