You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#jira UE-112221 #rb josh.adams #preflight 6064944bf8bd0000016c5637 [CL 15919434 by christopher waters in ue5-main branch]
30 lines
778 B
C#
30 lines
778 B
C#
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
using UnrealBuildTool;
|
|
|
|
public class XInput : ModuleRules
|
|
{
|
|
public XInput(ReadOnlyTargetRules Target) : base(Target)
|
|
{
|
|
Type = ModuleType.External;
|
|
|
|
string DirectXSDKDir = Target.UEThirdPartySourceDirectory + "Windows/DirectX";
|
|
|
|
// Ensure correct include and link paths for xinput so the correct dll is loaded (xinput1_3.dll)
|
|
|
|
if (Target.Platform == UnrealTargetPlatform.HoloLens)
|
|
{
|
|
PublicSystemLibraries.Add("xinputuap.lib");
|
|
PublicSystemIncludePaths.Add(DirectXSDKDir + "/include");
|
|
}
|
|
else
|
|
{
|
|
if (Target.Platform == UnrealTargetPlatform.Win64)
|
|
{
|
|
PublicAdditionalLibraries.Add(DirectXSDKDir + "/Lib/x64/XInput.lib");
|
|
PublicSystemIncludePaths.Add(DirectXSDKDir + "/include");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|