Skip to content

Commit

Permalink
Improve Unreal engine auto-GameInput
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaldaien committed Nov 29, 2024
1 parent d6cb3b1 commit 1a30f00
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/input/game_input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -792,11 +792,12 @@ GameInputCreate_Detour (IGameInput** gameInput)
//
// -> Their GameInput integration is extremely simple and SK is fully compatible.
//
if (SK_GetCurrentRenderBackend ().windows.unreal && config.system.first_run && (! SK_XInput_PollController (0)))
if (config.system.first_run && (! SK_XInput_PollController (0)))
{
SK_HID_SetupPlayStationControllers ();
SK_RunOnce (if (! SK_ImGui_HasPlayStationController ())
SK_HID_SetupPlayStationControllers ());

if (SK_ImGui_HasPlayStationController ())
if (SK_ImGui_HasPlayStationController () && StrStrIW (SK_GetFullyQualifiedApp (), L"WinGDK"))
{
SK_LOGi0 (L"Enabling Xbox Mode because Unreal Engine is using GameInput...");

Expand Down

0 comments on commit 1a30f00

Please sign in to comment.