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

fnf fixes again

This commit is contained in:
00C0FFEE 2019-05-27 18:27:41 +02:00
parent 23af813847
commit 2165603a04
2 changed files with 14 additions and 16 deletions

View File

@ -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)

View File

@ -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)