Skip to content

Commit

Permalink
Spawn the gamepad thread after wnd creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Aemony committed Feb 22, 2024
1 parent 04d6314 commit 96b78a7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/SKIF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1684,9 +1684,6 @@ wWinMain ( _In_ HINSTANCE hInstance,

// Register service (auto-stop) hotkey
SKIF_Util_RegisterHotKeySVCTemp ( );

// Spawn the gamepad input thread
_gamepad.SpawnChildThread ( );
}

PLOG_INFO << "Initializing updater...";
Expand Down Expand Up @@ -3394,6 +3391,10 @@ wWinMain ( _In_ HINSTANCE hInstance,

SKIF_Util_GetMonitorHzPeriod (SKIF_ImGui_hWnd, MONITOR_DEFAULTTOPRIMARY, dwDwmPeriod);
//OutputDebugString((L"Initial refresh rate period: " + std::to_wstring (dwDwmPeriod) + L"\n").c_str());

// Spawn the gamepad input thread
if (! _Signal.Launcher && ! _Signal.LauncherURI && ! _Signal.Quit && ! _Signal.ServiceMode)
_gamepad.SpawnChildThread ( );
}
}

Expand Down

0 comments on commit 96b78a7

Please sign in to comment.