1
0
mirror of synced 2025-02-01 12:17:55 +01:00

Updated Daytona 3 for xinput right trigger for 1st menu

This commit is contained in:
Boomslangnz 2018-11-03 23:22:38 +13:00
parent ac565e115e
commit 9babd416b7
3 changed files with 272 additions and 261 deletions

View File

@ -11,7 +11,7 @@ extern int* ffbOffset;
extern int* ffbOffset2;
extern int* ffbOffset3;
extern int* ffbOffset4;
extern bool daytonaPressStart;
bool daytonaPressStart = false;
uintptr_t imageBase;
bool shiftup = false;
bool shiftdown = false;
@ -34,11 +34,13 @@ static void InjectKeys()
BYTE wheel = *ffbOffset2;
BYTE gas = *ffbOffset3;
BYTE brake = *ffbOffset4;
BYTE gamestate = *(BYTE *)(imageBase + 0x15B5744);
BYTE gear = *(BYTE *)(imageBase + 0x15B468C);
*(BYTE *)(imageBase + 0x15B4679) = gas;
*(BYTE *)(imageBase + 0x15B467A) = brake;
DWORD track = *(DWORD *)(imageBase + 0x011B0148);
if (track != 0)
{
@ -73,6 +75,15 @@ static void InjectKeys()
#endif
}
if (gas >= 0x40)
{
daytonaPressStart = true;
}
else
{
daytonaPressStart = false;
}
if (wheel <= 0x40)
{
//Menu Left

View File

@ -23,8 +23,6 @@ HANDLE XboxOneControllerMutex[4] = { 0 };
static unsigned short idVendor = 0x045E;
static unsigned short idProduct = 0x02D1;
static bool daytonaPressStart = false;
int configuration = 1;
int interface = 0;
int endpointIn = 0x81;

View File

@ -150,3 +150,5 @@ typedef struct _XINPUT_KEYSTROKE
BYTE UserIndex;
BYTE HidCode;
} XINPUT_KEYSTROKE, *PXINPUT_KEYSTROKE;
extern bool daytonaPressStart;