fnf fixes again
This commit is contained in:
parent
23af813847
commit
2165603a04
@ -16,7 +16,7 @@ int vertical3 = 0;
|
|||||||
HWND hWndRT3 = 0;
|
HWND hWndRT3 = 0;
|
||||||
bool movable3 = false;
|
bool movable3 = false;
|
||||||
bool polling3 = false;
|
bool polling3 = false;
|
||||||
int oldvalue3 = 0;
|
|
||||||
static bool previousLeft = false;
|
static bool previousLeft = false;
|
||||||
static bool previousRight = false;
|
static bool previousRight = false;
|
||||||
static bool previousUp = false;
|
static bool previousUp = false;
|
||||||
@ -269,13 +269,12 @@ DWORD WINAPI InputRT3(LPVOID lpParam)
|
|||||||
int iWheel = (int)((width - 20) * 0.5 * wheel);
|
int iWheel = (int)((width - 20) * 0.5 * wheel);
|
||||||
double fx = (float)((wheel) * (65535.0f / horizontal3));
|
double fx = (float)((wheel) * (65535.0f / horizontal3));
|
||||||
|
|
||||||
if ((movable3 == false) && (oldvalue3 != *ffbOffset2)) // then poll ugly mouse input
|
if (movable3 == false)
|
||||||
{
|
{
|
||||||
polling3 = true;
|
polling3 = true;
|
||||||
mouse_event(MOUSEEVENTF_MOVE, fx, 0, 0, 0);
|
mouse_event(MOUSEEVENTF_MOVE, fx, 0, 0, 0);
|
||||||
polling3 = false;
|
polling3 = false;
|
||||||
oldvalue3 = *ffbOffset2;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// GAS
|
// GAS
|
||||||
if (*ffbOffset3 >= 5)
|
if (*ffbOffset3 >= 5)
|
||||||
|
@ -14,7 +14,7 @@ int vertical4 = 0;
|
|||||||
HWND hWndRT4 = 0;
|
HWND hWndRT4 = 0;
|
||||||
bool movable4 = false;
|
bool movable4 = false;
|
||||||
bool polling4 = false;
|
bool polling4 = false;
|
||||||
int oldvalue4 = 0;
|
|
||||||
static bool previousLeft = false;
|
static bool previousLeft = false;
|
||||||
static bool previousRight = false;
|
static bool previousRight = false;
|
||||||
static bool previousUp = false;
|
static bool previousUp = false;
|
||||||
@ -268,13 +268,12 @@ DWORD WINAPI InputRT4(LPVOID lpParam)
|
|||||||
int iWheel = (int)((width - 20) * 0.5 * wheel);
|
int iWheel = (int)((width - 20) * 0.5 * wheel);
|
||||||
double fx = (float)((wheel) * (65535.0f / horizontal4));
|
double fx = (float)((wheel) * (65535.0f / horizontal4));
|
||||||
|
|
||||||
if ((movable4 == false) && (oldvalue4 != *ffbOffset2)) // then poll ugly mouse input
|
if (movable4 == false)
|
||||||
{
|
{
|
||||||
polling4 = true;
|
polling4 = true;
|
||||||
mouse_event(MOUSEEVENTF_MOVE, fx, 0, 0, 0);
|
mouse_event(MOUSEEVENTF_MOVE, fx, 0, 0, 0);
|
||||||
polling4 = false;
|
polling4 = false;
|
||||||
oldvalue4 = *ffbOffset2;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// GAS
|
// GAS
|
||||||
if (*ffbOffset3 >= 5)
|
if (*ffbOffset3 >= 5)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user