Read Port 4128 on GRID
This commit is contained in:
parent
74907430ce
commit
5cb5f14520
@ -29,6 +29,8 @@ static int FFBCounter;
|
|||||||
static int(__stdcall* Out32Ori)(DWORD device, DWORD data);
|
static int(__stdcall* Out32Ori)(DWORD device, DWORD data);
|
||||||
static int __stdcall Out32Hook(DWORD device, DWORD data)
|
static int __stdcall Out32Hook(DWORD device, DWORD data)
|
||||||
{
|
{
|
||||||
|
if (device == 0x1020)
|
||||||
|
{
|
||||||
++FFBCounter;
|
++FFBCounter;
|
||||||
|
|
||||||
if (FFBCounter == 5)
|
if (FFBCounter == 5)
|
||||||
@ -50,6 +52,7 @@ static int __stdcall Out32Hook(DWORD device, DWORD data)
|
|||||||
myTriggers->Constant(myConstants->DIRECTION_FROM_RIGHT, percentForce);
|
myTriggers->Constant(myConstants->DIRECTION_FROM_RIGHT, percentForce);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return Out32Ori(device, data);
|
return Out32Ori(device, data);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user