From 0be26dce37529303b62874548b9288b8ab5f5f16 Mon Sep 17 00:00:00 2001 From: Peter Repukat Date: Wed, 15 Feb 2017 21:49:45 +0100 Subject: [PATCH] Cleanup --- SteamTarget/VirtualControllerThread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SteamTarget/VirtualControllerThread.cpp b/SteamTarget/VirtualControllerThread.cpp index f73e266..2e68278 100644 --- a/SteamTarget/VirtualControllerThread.cpp +++ b/SteamTarget/VirtualControllerThread.cpp @@ -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;