You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
45 lines
1.2 KiB
C#
45 lines
1.2 KiB
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 = "";
|
|
if (Target.Platform == UnrealTargetPlatform.HoloLens)
|
|
{
|
|
DirectXSDKDir = Target.WindowsPlatform.bUseWindowsSDK10 ?
|
|
Target.UEThirdPartySourceDirectory + "Windows/DirectXLegacy" :
|
|
Target.UEThirdPartySourceDirectory + "Windows/DirectX";
|
|
}
|
|
else
|
|
{
|
|
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");
|
|
}
|
|
else if (Target.Platform == UnrealTargetPlatform.Win32)
|
|
{
|
|
PublicAdditionalLibraries.Add(DirectXSDKDir + "/Lib/x86/XInput.lib");
|
|
PublicSystemIncludePaths.Add(DirectXSDKDir + "/include");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|