mirror of
https://github.com/Thracky/GlosSI.git
synced 2024-11-17 03:26:02 +00:00
Cleanup
This commit is contained in:
parent
95eb87e183
commit
0be26dce37
@ -64,7 +64,7 @@ void VirtualControllerThread::controllerLoop()
|
||||
{
|
||||
DWORD result;
|
||||
DWORD result2;
|
||||
sf::Clock testTimer;
|
||||
sf::Clock waitForHookTimer;
|
||||
while (bShouldRun)
|
||||
{
|
||||
sfClock.restart();
|
||||
@ -73,7 +73,7 @@ void VirtualControllerThread::controllerLoop()
|
||||
// otherwise the M$ compiler calls to a jumptable, jumping to the real function
|
||||
// We can't have this if we wan't to dynamically unpatch and repatch Valve's XInput hook
|
||||
// Also wait a second, jut to be sure Steam has done it's hooking thing...
|
||||
if (XGetState == nullptr && testTimer.getElapsedTime().asSeconds() > 1)
|
||||
if (XGetState == nullptr && waitForHookTimer.getElapsedTime().asSeconds() > 1)
|
||||
{
|
||||
HMODULE xinputmod = nullptr;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user