You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#jira UE-118572 #rb nuno.leiria #rnx #ROBOMERGE-SOURCE: CL 16771609 in //UE5/Main/... #ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v836-16769935) [CL 16771636 by david harvey in ue5-release-engine-test branch]
63 lines
1.7 KiB
C++
63 lines
1.7 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "Interfaces/ITurnkeySupportModule.h"
|
|
#if WITH_EDITOR
|
|
#include "Misc/CoreMisc.h"
|
|
#endif
|
|
|
|
/**
|
|
* Editor main frame module
|
|
*/
|
|
class FTurnkeySupportModule : public ITurnkeySupportModule
|
|
#if WITH_EDITOR
|
|
, public FSelfRegisteringExec
|
|
#endif
|
|
{
|
|
public:
|
|
|
|
virtual void MakeTurnkeyMenu(struct FToolMenuSection& MenuSection) const override;
|
|
virtual void MakeQuickLaunchItems(class UToolMenu* Menu, FOnQuickLaunchSelected ExternalOnClickDelegate) const override;
|
|
virtual void RepeatQuickLaunch(FString DeviceId) override;
|
|
|
|
|
|
|
|
virtual void UpdateSdkInfo() override;
|
|
virtual void UpdateSdkInfoForDevices(TArray<FString> DeviceIds) override;
|
|
|
|
virtual FTurnkeySdkInfo GetSdkInfo(FName PlatformName, bool bBlockIfQuerying = true) const override;
|
|
virtual FTurnkeySdkInfo GetSdkInfoForDeviceId(const FString& DeviceId) const override;
|
|
virtual void ClearDeviceStatus(FName PlatformName=NAME_None) override;
|
|
public:
|
|
|
|
// IModuleInterface interface
|
|
|
|
virtual void StartupModule( ) override;
|
|
virtual void ShutdownModule( ) override;
|
|
|
|
virtual bool SupportsDynamicReloading( ) override
|
|
{
|
|
return true; // @todo: Eventually, this should probably not be allowed.
|
|
}
|
|
|
|
|
|
private:
|
|
// Information about the validity of using a platform, discovered via Turnkey
|
|
TMap<FName, FTurnkeySdkInfo> PerPlatformSdkInfo;
|
|
|
|
// Information about the validity of each connected device (by string, discovered by Turnkey)
|
|
TMap<FString, FTurnkeySdkInfo> PerDeviceSdkInfo;
|
|
|
|
|
|
// menu helpers
|
|
TSharedRef<SWidget> MakeTurnkeyMenuWidget() const;
|
|
|
|
#if WITH_EDITOR
|
|
// FSelfRegisteringExec interface
|
|
virtual bool Exec( class UWorld* InWorld, const TCHAR* Cmd, FOutputDevice& Ar ) override;
|
|
#endif
|
|
|
|
};
|